code: def test_pickle_unity_object_exception(self):
      sa = tc.SArray()
      sf = tc.SFrame()
      g = tc.SGraph()
      sk = sa.summary()
      m = tc.pagerank.create(g)
  
      expected_error = (
          TypeError if (version_info[0] == 3) else PicklingError
      )
  
      for obj in [sa, sf, g, sk, m]:
          self.assertRaises(
              expected_error, lambda: cloudpickle.dumps(obj)
          )
  
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 1 for calling the CloudPickleTest obj's underlying member method code with example usage: obj.test_pickle_unity_object_exception() without return types