code: def testDtypeMismatchTypeError(self):
      indices = [0, 1, 2]
      depth = 3
      on_value = constant_op.constant(1.0, dtypes.float32)
      off_value = constant_op.constant(0.0, dtypes.float32)
      dtype = np.int32
  
      self._testBothOneHot(
          indices=indices,
          depth=depth,
          on_value=on_value,
          dtype=dtype,
          truth=None,
          raises=TypeError,
      )
  
      self._testBothOneHot(
          indices=indices,
          depth=depth,
          on_value=off_value,
          dtype=dtype,
          truth=None,
          raises=TypeError,
      )
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 18 for calling the OneHotTest obj's underlying member method code with example usage: obj.testDtypeMismatchTypeError() without return types