code: def test_restore_from_v1_saved_model_without_pyfuncs(self):
      input_specs = {
          "a": tf.TensorSpec(
              [
                  None,
              ],
              dtype=tf.float32,
          ),
          "b": tf.TensorSpec(
              [
                  None,
              ],
              dtype=tf.float32,
          ),
      }
  
      def func(inputs):
          result = {"a+b": inputs["a"] + inputs["b"]}
          for value in result.values():
              value.set_shape([1])
          return result
  
      saved_model_path_v1 = _create_test_saved_model(
          True, input_specs, func, "export_v1"
      )
  
      imported = tf.compat.v2.saved_model.load(saved_model_path_v1)
      imported_function = imported.signatures[
          constants.TRANSFORM_SIGNATURE
      ]
      input_kwargs = {
          "a": tf.constant([2.0], dtype=tf.float32),
          "b": tf.constant([3.0], dtype=tf.float32),
      }
      expected_output = 5.0
      (
          restored_function,
          _,
          _,
      ) = saved_transform_io_v2._restore_from_v1_saved_model(
          imported_function, saved_model_path_v1
      )
      self.assertEqual(
          imported_function(**input_kwargs)["a+b"], expected_output
      )
      self.assertEqual(
          restored_function(**input_kwargs)["a+b"], expected_output
      )
  
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 20 for calling the SavedTransformIOV2Test obj's underlying member method code with example usage: obj.test_restore_from_v1_saved_model_without_pyfuncs() and returns: result