code: def testMismatchRaggedRank2(self):
      elems = ragged_factory_ops.constant([[1, 2, 3], [4, 5], [6, 7]])
      fn = lambda x: ragged_tensor.RaggedTensor.from_row_starts(x, [0])
      with self.assertRaisesRegex(
          ValueError, r"(?s)Expected `fn` to return.*But it returned.*"
      ):
          _ = ragged_map_ops.map_fn(
              fn,
              elems,
              dtype=ragged_tensor.RaggedTensorType(
                  dtype=dtypes.int64, ragged_rank=10
              ),
          )
  
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 7 for calling the RaggedMapOpTest obj's underlying member method code with example usage: obj.testMismatchRaggedRank2() without return types