code: def test_array_pickle(device):
      arr = chainerx.array([1, 2], chainerx.float32, device=device)
      s = pickle.dumps(arr)
      del arr
  
      arr2 = pickle.loads(s)
      assert isinstance(arr2, chainerx.ndarray)
      assert arr2.device is device
      assert arr2.dtype == chainerx.float32
      chainerx.testing.assert_array_equal(
          arr2, chainerx.array([1, 2], chainerx.float32)
      )
  
imports: import copy
  import math
  import pickle
  import numpy
  import pytest
  import chainerx
  import chainerx.testing
  from chainerx_tests import array_utils
label_desc: Use image node_id 32 for calling a global function with example usage: test_array_pickle(device) without return types