code: def test_pointers_bool(self):
      # NULL pointers have a boolean False value, non-NULL pointers True.
      self.assertEqual(bool(POINTER(c_int)()), False)
      self.assertEqual(bool(pointer(c_int())), True)
  
      self.assertEqual(bool(CFUNCTYPE(None)(0)), False)
      self.assertEqual(bool(CFUNCTYPE(None)(42)), True)
  
      # COM methods are boolean True:
      if sys.platform == "win32":
          mth = ctypes.WINFUNCTYPE(None)(42, "name", (), None)
          self.assertEqual(bool(mth), True)
  
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 14 for calling the PointersTestCase obj's underlying member method code with example usage: obj.test_pointers_bool() without return types