code: def testComplexConstants(self):
      for dtype in self.complex_types:
          constants = [
              dtype(42 + 3j),
              np.array([], dtype=dtype),
              np.ones([50], dtype=dtype) * (3 + 4j),
              np.array([1j, 2 + 1j], dtype=dtype),
              np.array([[1, 2j, 7j], [4, 5, 6]], dtype=dtype),
              np.array(
                  [
                      [[1, 2], [3, 4 + 6j], [5, 6]],
                      [[10 + 7j, 20], [30, 40], [50, 60]],
                  ],
                  dtype=dtype,
              ),
              np.array([[[]], [[]]], dtype=dtype),
              np.array([[[[1 + 3j]]]], dtype=dtype),
          ]
          for c in constants:
              self._testNullary(
                  lambda c=c: constant_op.constant(c), expected=c
              )
  
file_path: tensorflow/tensorflow/compiler/tests/nullary_ops_test.py
imports: import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 4 for calling the NullaryOpsTest obj's underlying member method code with example usage: obj.testComplexConstants() without return types