code: def test_roundtrip_buffered():
      for obj in [
          dict(a=b"x" * 1025),
          b"hello" * 500,
          [b"hello" * 501, 1, 2, 3],
      ]:
          bufs = serialize_object(obj)
          assert len(bufs) == 2
          obj2, remainder = deserialize_object(bufs)
          assert remainder == []
          assert obj == obj2
  
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 5 for calling a global function with example usage: test_roundtrip_buffered() without return types