code: def _testBothOneHot(
      self, truth, expected_err_re=None, raises=None, **inputs
  ):
      self._testOneHot(truth, True, expected_err_re, raises, **inputs)
      self._testOneHot(truth, False, expected_err_re, raises, **inputs)
  
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 2 for calling the OneHotTest obj's underlying member method code with example usage: obj._testBothOneHot(truth, expected_err_re, raises) without return types