code: def testLiteralNan(self):
      nan_literal = default_types.Literal(float("nan"))
      complex_nan = default_types.Literal(complex(float("nan"), 1))
      complex_nan_other = default_types.Literal(
          complex(1, float("nan"))
      )
      self.assertEqual(nan_literal, nan_literal)
      self.assertEqual(nan_literal, complex_nan)
      self.assertEqual(nan_literal, complex_nan_other)
  
imports: import collections
  from tensorflow.core.function.trace_type import default_types
  from tensorflow.core.function.trace_type import serialization
  from tensorflow.python.platform import test
  from tensorflow.python.types import trace
label_desc: Use image node_id 1 for calling the DefaultTypesTest obj's underlying member method code with example usage: obj.testLiteralNan() without return types