code: def testErrors(self):
      self.assertRaisesRegex(
          TypeError,
          "`axis` must be a list of int or a constant tensor *",
          ragged_array_ops.reverse,
          ragged_factory_ops.constant([[1], [2, 3]], ragged_rank=1),
          [0, None],
      )
  
file_path: tensorflow-upstream/tensorflow/python/ops/ragged/ragged_reverse_op_test.py
imports: from absl.testing import parameterized
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops.ragged import ragged_array_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 2 for calling the RaggedReverseOpTest obj's underlying member method code with example usage: obj.testErrors() without return types