code: def testInvalidDefaultValueRank(
      self,
      descr,
      params,
      indices,
      default_value,
      error,
      ragged_rank=None,
      indices_ragged_rank=None,
  ):
      params = ragged_factory_ops.constant(
          params, ragged_rank=ragged_rank
      )
      indices = ragged_factory_ops.constant(
          indices, ragged_rank=indices_ragged_rank
      )
      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 5 for calling the RaggedBatchGatherOpTest obj's underlying member method code with example usage: obj.testInvalidDefaultValueRank(descr, params, indices, default_value, error, ragged_rank, indices_ragged_rank) without return types