code: def testRaggedMergeDimsError(
      self,
      rt,
      outer_axis,
      inner_axis,
      exception,
      message=None,
      ragged_rank=None,
  ):
      x = ragged_factory_ops.constant(rt, ragged_rank=ragged_rank)
      with self.assertRaisesRegex(exception, message):
          self.evaluate(x.merge_dims(outer_axis, inner_axis))
  
file_path: tensorflow/tensorflow/python/ops/ragged/ragged_merge_dims_op_test.py
imports: from absl.testing import parameterized
  from tensorflow.python.eager import context
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import googletest
  from tensorflow.python.util import nest
label_desc: Use image node_id 2 for calling the RaggedMergeDimsOpTest obj's underlying member method code with example usage: obj.testRaggedMergeDimsError(rt, outer_axis, inner_axis, exception, message, ragged_rank) without return types