code: def test_checkexact(self):
      # PyComplex_CheckExact()
      checkexact = _testcapi.complex_checkexact
  
      self.assertTrue(checkexact(1 + 2j))
      self.assertFalse(checkexact(ComplexSubclass(1 + 2j)))
      self.assertFalse(checkexact(Complex()))
      self.assertFalse(checkexact(3))
      self.assertFalse(checkexact(3.0))
      self.assertFalse(checkexact(object()))
  
imports: from math import isnan
  import errno
  import unittest
  import warnings
  from test.test_capi.test_getargs import BadComplex, BadComplex2, Complex, FloatSubclass, Float, BadFloat, BadFloat2, ComplexSubclass
  from test.support import import_helper
label_desc: Use image node_id 2 for calling the CAPIComplexTest obj's underlying member method code with example usage: obj.test_checkexact() without return types