code: def testMapRaggedTensor(self):
      # Note: there are additional tests in ragged/ragged_map_fn_op_test.py
      with self.cached_session():
          rt = ragged_factory_ops.constant([[1, 2], [3]])
          result = map_fn.map_fn(
              lambda x: x + 1,
              rt,
              fn_output_signature=ragged_tensor.RaggedTensorSpec(
                  [None], rt.dtype
              ),
          )
          self.assertAllEqual([[2, 3], [4]], result)
          self.assertEqual([2, None], result.shape.as_list())
  
imports: import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  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 gradients_impl
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import map_fn
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variables
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  import tensorflow.python.ops.tensor_array_grad
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the MapFnTest obj's underlying member method code with example usage: obj.testMapRaggedTensor() without return types