code: def test_callbacks_with_pointers(self):
      # a function type receiving a pointer
      PROTOTYPE = CFUNCTYPE(c_int, POINTER(c_int))
  
      self.result = []
  
      def func(arg):
          for i in range(10):
              self.result.append(arg[i])
          return 0
  
      callback = PROTOTYPE(func)
  
      dll = CDLL(_ctypes_test.__file__)
      # This function expects a function pointer,
      # and calls this with an integer pointer as parameter.
      # The int pointer points to a table containing the numbers 1..10
      doit = dll._testfunc_callback_with_pointer
  
      doit(callback)
      doit(callback)
  
imports: import _ctypes_test
  import array
  import ctypes
  import sys
  import unittest
  from ctypes import CDLL, CFUNCTYPE, Structure, POINTER, pointer, _Pointer, _pointer_type_cache, byref, sizeof, c_void_p, c_char_p, c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint, c_long, c_ulong, c_longlong, c_ulonglong, c_float, c_double
  from ._support import _CData, PyCPointerType, Py_TPFLAGS_DISALLOW_INSTANTIATION, Py_TPFLAGS_IMMUTABLETYPE
label_desc: Use image node_id 6 for calling the PointersTestCase obj's underlying member method code with example usage: obj.test_callbacks_with_pointers() and returns: int