code: def setUpClass(cls):
      test_case.skip_if_not_tf2("Tensorflow 2.x required.")
      input_specs = {
          "x": tf.TensorSpec(
              [
                  None,
              ],
              dtype=tf.float32,
          )
      }
  
      def preprocessing_fn(inputs):
          output = (inputs["x"] - 2.0) / 5.0
          return {"x_scaled": output}
  
      cls._saved_model_path_v1 = _create_test_saved_model(
          True, input_specs, preprocessing_fn, "export_v1"
      )
      cls._saved_model_path_v2 = _create_test_saved_model(
          False, input_specs, preprocessing_fn, "export_v2"
      )
  
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 1 for calling the SavedTransformIOV2Test obj's underlying member method code with example usage: obj.setUpClass(cls) and returns: dict