class_docstr: Test cases for unary operators.
class_docstr_tok: ["Test","cases","for","unary","operators","."]
code: def testCast(self):
      types = {
          dtypes.bool,
          dtypes.float32,
          dtypes.float64,
          dtypes.complex64,
          dtypes.int32,
          dtypes.int64,
          dtypes.uint32,
          dtypes.uint64,
      }
      for src_type in types:
          for dst_type in types:
              self._testCast(src_type, dst_type)
  
imports: import platform
  import unittest
  import numpy
  import six
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import bitwise_ops
  from tensorflow.python.ops import gen_functional_ops
  from tensorflow.python.ops import gen_nn_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 18 for calling the UnaryOpsTest obj's underlying member method code with example usage: obj.testCast() without return types