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