code: def test_pickle_threshold():
      numpy = pytest.importorskip("numpy")
      from numpy.testing import assert_array_equal
  
      A = numpy.ones((5, 5))
      bufs = serialize_object(A, 1024)
      assert len(bufs) == 1
      B, _ = deserialize_object(bufs)
      assert_array_equal(A, B)
  
      A = numpy.ones((512, 512))
      bufs = serialize_object(A, 1024)
      assert len(bufs) == 2
      B, _ = deserialize_object(bufs)
      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 17 for calling a global function with example usage: test_pickle_threshold() without return types