code: def test_load_pickle(self):
      a = testing.shaped_arange((2, 3, 4), dtype=cupy.float32)
  
      sio = io.BytesIO()
      a.dump(sio)
      s = sio.getvalue()
      sio.close()
  
      sio = io.BytesIO(s)
      b = cupy.load(sio, allow_pickle=True)
      testing.assert_array_equal(a, b)
      sio.close()
  
      sio = io.BytesIO(s)
      with self.assertRaises(ValueError):
          cupy.load(sio, allow_pickle=False)
      sio.close()
  
file_path: cupy/tests/cupy_tests/io_tests/test_npz.py
imports: import io
  import pickle
  import unittest
  import cupy
  from cupy import testing
label_desc: Use image node_id 3 for calling the TestNpz obj's underlying member method code with example usage: obj.test_load_pickle() without return types