code: def testRankMismatch(self, params, indices, default_value, error):
      params = ragged_factory_ops.constant(params)
      indices = ragged_factory_ops.constant(indices)
      with self.assertRaises(error):
          _ = ragged_batch_gather_with_default_op.batch_gather_with_default(
              params, indices, default_value
          )
  
imports: from absl.testing import parameterized
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops.ragged import ragged_batch_gather_ops
  from tensorflow.python.ops.ragged import ragged_batch_gather_with_default_op
  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 4 for calling the RaggedBatchGatherOpTest obj's underlying member method code with example usage: obj.testRankMismatch(params, indices, default_value, error) without return types