code: def test_numpy_in_dict():
      pytest.importorskip("numpy")
      from numpy.testing import assert_array_equal
  
      for shape in SHAPES:
          for dtype in DTYPES:
              A = new_array(shape, dtype=dtype)
              bufs = serialize_object(dict(a=A, b=1, c=range(20)))
              canned = pickle.loads(bufs[0])
              assert isinstance(canned["a"], CannedArray)
              d, r = deserialize_object(bufs)
              B = d["a"]
              assert r == []
              assert A.shape == B.shape
              assert A.dtype == B.dtype
              assert_array_equal(A, B)
  
imports: import pickle
  from collections import namedtuple
  import pytest
  from ipyparallel import interactive
  from ipyparallel.serialize import deserialize_object, serialize_object
  from ipyparallel.serialize.canning import CannedArray, CannedClass
label_desc: Use image node_id 10 for calling a global function with example usage: test_numpy_in_dict() without return types