code: def test_py_c_quot(self):
      # Test _Py_c_quot()
      _py_c_quot = _testcapi._py_c_quot
  
      self.assertEqual(_py_c_quot(1, 1j), (-1j, 0))
      self.assertEqual(_py_c_quot(1, -1j), (1j, 0))
      self.assertEqual(_py_c_quot(1j, 2), (0.5j, 0))
      self.assertEqual(_py_c_quot(1j, -2), (-0.5j, 0))
      self.assertEqual(_py_c_quot(1, 2j), (-0.5j, 0))
  
      z, e = _py_c_quot(NAN, 1j)
      self.assertTrue(isnan(z.real))
      self.assertTrue(isnan(z.imag))
      self.assertEqual(e, 0)
  
      z, e = _py_c_quot(1j, NAN)
      self.assertTrue(isnan(z.real))
      self.assertTrue(isnan(z.imag))
      self.assertEqual(e, 0)
  
      self.assertEqual(_py_c_quot(1, 0j)[1], errno.EDOM)
  
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 12 for calling the CAPIComplexTest obj's underlying member method code with example usage: obj.test_py_c_quot() without return types