code: def test_memoize_subclass(self):
      class A(object):
          def __init__(self):
              self.name = "A"
  
      class B(A):
          def __init__(self):
              super(B, self).__init__()
              self.name2 = "B"
  
      b = B()
      self.assertEqual(b.name, "A")
      self.assertEqual(b.name2, "B")
  
      b2 = pickle.loads(cloudpickle.dumps(b))
      self.assertEqual(b.name, b2.name)
      self.assertEqual(b.name2, b2.name2)
  
file_path: turicreate/src/python/turicreate/test/test_cloudpickle.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import turicreate
  import unittest
  from pickle import PicklingError
  import pickle
  import turicreate.util._cloudpickle
  from sys import version_info
  import pytest
label_desc: Use image node_id 2 for calling the CloudPickleTest obj's underlying member method code with example usage: obj.test_memoize_subclass() without return types