code: def test_class_inheritance():
      @interactive
      class C:
          a = 5
  
      @interactive
      class D(C):
          b = 10
  
      bufs = serialize_object(dict(D=D))
      canned = pickle.loads(bufs[0])
      assert isinstance(canned["D"], CannedClass)
      d, r = deserialize_object(bufs)
      D2 = d["D"]
      assert D2.a == D.a
      assert D2.b == D.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 16 for calling a global function with example usage: test_class_inheritance() without return types