code: def test_int_pointers(self):
      from ctypes import (
          c_short,
          c_uint,
          c_int,
          c_long,
          POINTER,
          pointer,
      )
  
      LPINT = POINTER(c_int)
  
      ##        p = pointer(c_int(42))
      ##        x = LPINT.from_param(p)
      x = LPINT.from_param(pointer(c_int(42)))
      self.assertEqual(x.contents.value, 42)
      self.assertEqual(LPINT(c_int(42)).contents.value, 42)
  
      self.assertEqual(LPINT.from_param(None), None)
  
      if c_int != c_long:
          self.assertRaises(
              TypeError, LPINT.from_param, pointer(c_long(42))
          )
      self.assertRaises(
          TypeError, LPINT.from_param, pointer(c_uint(42))
      )
      self.assertRaises(
          TypeError, LPINT.from_param, pointer(c_short(42))
      )
  
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 7 for calling the SimpleTypesTestCase obj's underlying member method code with example usage: obj.test_int_pointers() without return types