code: def testSimpleCases(self):
      indices = [0, 1, 2]
      depth = 3
      truth = np.asarray(
          [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]],
          dtype=np.float32,
      )
      self._testBothOneHot(indices=indices, depth=depth, truth=truth)
  
      indices = [0, 1, 2]
      depth = 3
      truth = np.asarray(
          [[1, 0, 0], [0, 1, 0], [0, 0, 1]], dtype=np.int32
      )
      self._testBothOneHot(
          indices=indices, depth=depth, dtype=np.int32, truth=truth
      )
  
      indices = [0, 1, 2]
      depth = 3
      truth = np.asarray(
          [[1, -1, -1], [-1, 1, -1], [-1, -1, 1]], dtype=np.int32
      )
      self._testBothOneHot(
          indices=indices,
          depth=depth,
          on_value=1,
          off_value=-1,
          truth=truth,
      )
  
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 12 for calling the OneHotTest obj's underlying member method code with example usage: obj.testSimpleCases() without return types