code: def test_restore_variables(self, builder_cls):
      # Force test to run in graph mode.
      # The SavedModelLoader.restore_variables method is a v1-only API requiring a
      # session to work.
      with ops.Graph().as_default():
          self.export_graph_with_main_op(builder_cls)
          loader = loader_impl.SavedModelLoader(
              SAVED_MODEL_WITH_MAIN_OP
          )
          with self.session() as sess:
              x = variable_v1.VariableV1(0, name="x")
              y = variable_v1.VariableV1(0, name="y")
              z = x * y
  
              self.evaluate(variables.global_variables_initializer())
  
              # There are variables to restore, so a saver must be created.
              with self.assertRaises(ValueError):
                  loader.restore_variables(sess, None)
  
              loader.restore_variables(sess, tf_saver.Saver())
              self.assertEqual(55, self.evaluate(z))
  
imports: import os
  import shutil
  from absl.testing import parameterized
  from tensorflow.python.client import session
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import resource_variables_toggle
  from tensorflow.python.ops import state_ops
  from tensorflow.python.ops import variable_v1
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.saved_model import builder
  from tensorflow.python.saved_model import loader_impl
  from tensorflow.python.saved_model import signature_def_utils
  from tensorflow.python.saved_model import utils
  from tensorflow.python.training import saver
label_desc: Use image node_id 7 for calling the SavedModelLoaderTest obj's underlying member method code with example usage: obj.test_restore_variables(builder_cls) without return types