code: def test_ragged_roundtrip(self, exported_in_tf1):
      if not hasattr(meta_graph_pb2.TensorInfo, "CompositeTensor"):
          self.skipTest(
              "This version of TensorFlow does not support "
              "CompositeTenors in TensorInfo."
          )
      input_specs = {
          "input": tf.RaggedTensorSpec(
              shape=[None, None],
              dtype=tf.float32,
              ragged_rank=1,
              row_splits_dtype=tf.int64,
          )
      }
  
      def preprocessing_fn(inputs):
          return {"output": inputs["input"] / 2.0}
  
      export_path = _create_test_saved_model(
          exported_in_tf1,
          input_specs,
          preprocessing_fn,
          base_dir=self.get_temp_dir(),
      )
  
      splits = np.array([0, 2, 3], dtype=np.int64)
      values = np.array([1.0, 2.0, 4.0], dtype=np.float32)
      input_ragged = tf.RaggedTensor.from_row_splits(values, splits)
  
      # Using a computed input gives confidence that the graphs are fused
      inputs = {"input": input_ragged * 10}
      saved_model_loader = saved_transform_io_v2.SavedModelLoader(
          export_path
      )
      outputs = saved_model_loader.apply_transform_model(inputs)
      result = outputs["output"]
      self.assertIsInstance(result, tf.RaggedTensor)
  
      # indices and shape unchanged; values multipled by 10 and divided by 2
      self.assertAllEqual(splits, result.row_splits)
      self.assertEqual(
          [5.0, 10.0, 20.0], result.values.numpy().tolist()
      )
  
imports: import os
  import shutil
  import tempfile
  import numpy
  import tensorflow
  from tensorflow_transform import graph_context
  from tensorflow_transform import impl_helper
  from tensorflow_transform import tf_utils
  from tensorflow_transform import test_case
  from tensorflow_transform.py_func.api import apply_pyfunc
  from tensorflow_transform.saved import constants
  from tensorflow_transform.saved import saved_transform_io
  from tensorflow_transform.saved import saved_transform_io_v2
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.ops import script_ops
label_desc: Use image node_id 13 for calling the SavedTransformIOV2Test obj's underlying member method code with example usage: obj.test_ragged_roundtrip(exported_in_tf1) and returns: dict