code: def testComplex(self):
      for dtype in self.complex_types:
          self._testNAry(
              math_ops.add_n,
              [np.array([[1 + 2j, 2 - 3j, 3 + 4j]], dtype=dtype)],
              expected=np.array(
                  [[1 + 2j, 2 - 3j, 3 + 4j]], dtype=dtype
              ),
          )
  
          self._testNAry(
              math_ops.add_n,
              [
                  np.array([1 + 2j, 2 - 3j], dtype=dtype),
                  np.array([10j, 20], dtype=dtype),
              ],
              expected=np.array([1 + 12j, 22 - 3j], dtype=dtype),
          )
          self._testNAry(
              math_ops.add_n,
              [
                  np.array([-4, 5j], dtype=dtype),
                  np.array([2 + 10j, -2], dtype=dtype),
                  np.array([42j, 3 + 3j], dtype=dtype),
              ],
              expected=np.array([-2 + 52j, 1 + 8j], dtype=dtype),
          )
  
imports: import unittest
  import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 5 for calling the NAryOpsTest obj's underlying member method code with example usage: obj.testComplex() without return types