code: def testRaggedBatchGatherStaticError(
      self, params, indices, message=None, error=ValueError
  ):
      with self.assertRaisesRegex(error, message):
          ragged_batch_gather_ops.batch_gather(params, indices)
  
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 7 for calling the RaggedBatchGatherOpTest obj's underlying member method code with example usage: obj.testRaggedBatchGatherStaticError(params, indices, message, error) without return types