code: def testComplex(self):
      for dtype in [dtypes.complex64, dtypes.complex128]:
          tf_val = math_ops.cast(
              constant_op.constant([1.0 + 1.0j, 2.0 - 2.0j]),
              dtypes.complex128,
          )
          tf_ans = sparse_ops.sparse_tensor_to_dense(
              sparse_ops.from_dense(tf_val)
          )
          self.assertAllClose(tf_val, tf_ans)
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling the SparseToDenseTest obj's underlying member method code with example usage: obj.testComplex() without return types