a = np.load(BytesIO(binary)) このように使った場合、BytesIOは不要と判断されて開放されるのでしょうか?
https://docs.python.org/ja/3/library/io.html The buffer is discarded when the close() method is called. とのことで、 stream = BytesIO(binary) a = np.load(stream) stream.close() としたほうが良いのでしょうか?