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