code: def test_unpickable(self):
      # ctypes objects that are pointers or contain pointers are
      # unpickable.
      self.assertRaises(ValueError, lambda: self.dumps(Y()))
  
      prototype = CFUNCTYPE(c_int)
  
      for item in [
          c_char_p(),
          c_wchar_p(),
          c_void_p(),
          pointer(c_int(42)),
          dll._testfunc_p_p,
          prototype(lambda: 42),
      ]:
          self.assertRaises(ValueError, lambda: self.dumps(item))
  
file_path: catboost/contrib/tools/python/src/Lib/ctypes/test/test_pickling.py
imports: import unittest
  import pickle
  from ctypes import *
  import _ctypes_test
label_desc: Use image node_id 5 for calling the PickleTest obj's underlying member method code with example usage: obj.test_unpickable() without return types