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