code: def testUnknownIndicesRankError(self):
      if context.executing_eagerly():
          return
      params = ragged_factory_ops.constant([], ragged_rank=1)
      indices = constant_op.constant([0], dtype=dtypes.int64)
      indices = array_ops.placeholder_with_default(indices, None)
      self.assertRaisesRegex(
          ValueError,
          r"rank\(indices\) must be known statically",
          ragged_gather_ops.gather,
          params,
          indices,
      )
  
imports: from absl.testing import parameterized
  import numpy
  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 indexed_slices
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_gather_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 RaggedGatherOpTest obj's underlying member method code with example usage: obj.testUnknownIndicesRankError() without return types