code: def test_issue_7959(self):
      proto = self.functype.im_func(None)
  
      class X(object):
          def func(self):
              pass
  
          def __init__(self):
              self.v = proto(self.func)
  
      import gc
  
      for i in range(32):
          X()
      gc.collect()
      live = [x for x in gc.get_objects() if isinstance(x, X)]
      self.assertEqual(len(live), 0)
  
imports: import functools
  import unittest
  from ctypes import *
  from ctypes.test import need_symbol
  import _ctypes_test
label_desc: Use image node_id 21 for calling the Callbacks obj's underlying member method code with example usage: obj.test_issue_7959() without return types