def test_saving_loading_np_array(self):
        random = np.random.rand(100)
        state['random'] = random
        with tempfile.NamedTemporaryFile() as temp:
            state.save(temp.name)
            state.reset_instance()
            self.assertNotIn('random', state)
            state.load(temp.name, lazy=False)
            self.assertTrue((random == state['random']).all())
Test saving and loading a numpy array
dataset/ETHPy150Open duerrp/pyexperiment/tests/test_state.py/TestStateEfficientIO.test_saving_loading_np_array