code: def testIsComplex(self):
      self.assertEqual(dtypes.as_dtype("int8").is_complex, False)
      self.assertEqual(dtypes.as_dtype("int16").is_complex, False)
      self.assertEqual(dtypes.as_dtype("int32").is_complex, False)
      self.assertEqual(dtypes.as_dtype("int64").is_complex, False)
      self.assertEqual(dtypes.as_dtype("uint8").is_complex, False)
      self.assertEqual(dtypes.as_dtype("uint16").is_complex, False)
      self.assertEqual(dtypes.as_dtype("complex64").is_complex, True)
      self.assertEqual(dtypes.as_dtype("complex128").is_complex, True)
      self.assertEqual(dtypes.as_dtype("float32").is_complex, False)
      self.assertEqual(dtypes.as_dtype("float64").is_complex, False)
      self.assertEqual(dtypes.as_dtype("string").is_complex, False)
      self.assertEqual(dtypes.as_dtype("bool").is_complex, False)
      self.assertEqual(dtypes.as_dtype("bfloat16").is_complex, False)
      self.assertEqual(dtypes.as_dtype("float8_e5m2").is_complex, False)
      self.assertEqual(
          dtypes.as_dtype("float8_e4m3fn").is_complex, False
      )
      self.assertEqual(dtypes.as_dtype("int4").is_complex, False)
      self.assertEqual(dtypes.as_dtype("uint4").is_complex, False)
      self.assertEqual(dtypes.as_dtype("qint8").is_complex, False)
      self.assertEqual(dtypes.as_dtype("qint16").is_complex, False)
      self.assertEqual(dtypes.as_dtype("qint32").is_complex, False)
      self.assertEqual(dtypes.as_dtype("quint8").is_complex, False)
      self.assertEqual(dtypes.as_dtype("quint16").is_complex, False)
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import _dtypes
  from tensorflow.core.framework import types_pb2
  from tensorflow.core.function import trace_type
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 12 for calling the TypesTest obj's underlying member method code with example usage: obj.testIsComplex() without return types