code: def testRaggedGatherNdStaticError(
      self, params, indices, message=None, error=ValueError
  ):
      with self.assertRaisesRegex(error, message):
          ragged_gather_ops.gather_nd(params, indices)
  
file_path: tensorflow-upstream/tensorflow/python/ops/ragged/ragged_gather_nd_op_test.py
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.eager import context
  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_factory_ops
  from tensorflow.python.ops.ragged import ragged_gather_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 3 for calling the RaggedGatherNdOpTest obj's underlying member method code with example usage: obj.testRaggedGatherNdStaticError(params, indices, message, error) without return types