code: def test_int_pointers(self):
      LPINT = POINTER(c_int)
  
      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))
      )
  
imports: import _ctypes_test
  import unittest
  import test.support
  from ctypes import CDLL, PyDLL, ArgumentError, Structure, Array, Union, _Pointer, _SimpleCData, _CFuncPtr, POINTER, pointer, byref, c_void_p, c_char_p, c_wchar_p, py_object, c_bool, c_char, c_wchar, c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint, c_long, c_ulong, c_longlong, c_ulonglong, c_float, c_double, c_longdouble
label_desc: Use image node_id 9 for calling the SimpleTypesTestCase obj's underlying member method code with example usage: obj.test_int_pointers() without return types