code: def test_byref_pointerpointer(self):
      # See above
      from ctypes import (
          c_short,
          c_uint,
          c_int,
          c_long,
          pointer,
          POINTER,
          byref,
      )
  
      LPLPINT = POINTER(POINTER(c_int))
      LPLPINT.from_param(byref(pointer(c_int(42))))
  
      self.assertRaises(
          TypeError, LPLPINT.from_param, byref(pointer(c_short(22)))
      )
      if c_int != c_long:
          self.assertRaises(
              TypeError, LPLPINT.from_param, byref(pointer(c_long(22)))
          )
      self.assertRaises(
          TypeError, LPLPINT.from_param, byref(pointer(c_uint(22)))
      )
  
file_path: catboost/contrib/tools/python/src/Lib/ctypes/test/test_parameters.py
imports: import unittest, sys
  from ctypes.test import need_symbol
  import test.support
label_desc: Use image node_id 9 for calling the SimpleTypesTestCase obj's underlying member method code with example usage: obj.test_byref_pointerpointer() without return types