code: def testBatchGather(self):
      tokens = ragged_factory_ops.constant(
          [
              ["hello", ".", "there"],
              ["merhaba"],
              ["bonjour", ".", "ca va", "?"],
          ]
      )
      indices = ragged_factory_ops.constant([[0, 2], [0], [0, 2]])
  
      def gather(x):
          tokens_val, indices_val = x
          return array_ops.gather(tokens_val, indices_val)
  
      data = tokens, indices
      out = ragged_map_ops.map_fn(
          gather,
          data,
          dtype=ragged_tensor.RaggedTensorType(
              dtype=dtypes.string, ragged_rank=1
          ),
          infer_shape=False,
      )
  
      self.assertAllEqual(
          out,
          [[b"hello", b"there"], [b"merhaba"], [b"bonjour", b"ca va"]],
      )
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import map_fn
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import string_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_functional_ops
  from tensorflow.python.ops.ragged import ragged_map_ops
  from tensorflow.python.ops.ragged import ragged_math_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 RaggedMapOpTest obj's underlying member method code with example usage: obj.testBatchGather() and returns: array_ops