code: def testErrors(self, rt_input, exception, message=None, axis=1):
      rt = ragged_factory_ops.constant(rt_input)
      with self.assertRaisesRegex(exception, message):
          rt.row_lengths(axis)
  
file_path: tensorflow-upstream/tensorflow/python/ops/ragged/ragged_row_lengths_op_test.py
imports: from absl.testing import parameterized
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 2 for calling the RaggedRowLengthsOp obj's underlying member method code with example usage: obj.testErrors(rt_input, exception, message, axis) without return types