code: def testMetaGraphSaveLoad(self):
      save_prefix = os.path.join(self.get_temp_dir(), "ckpt")
      save_graph = ops.Graph()
      with save_graph.as_default(), self.session(
          graph=save_graph
      ) as session:
          partitioner = partitioned_variables.fixed_size_partitioner(
              5, axis=0
          )
          with variable_scope.variable_scope(
              "root", partitioner=partitioner
          ):
              v0 = variable_scope.get_variable(
                  "v0", dtype=dtypes.float32, shape=(10, 10)
              )
              v0_list = v0._get_variable_list()
              v0_part = v0._get_partitions()
              self.assertEqual(len(v0_list), 5)
              self.assertAllEqual(v0_part, (5, 1))
              self.evaluate(variables.global_variables_initializer())
  
              save_graph.get_collection_ref("partvar").append(v0)
              saver = saver_lib.Saver()
              save_graph.finalize()
              save_path = saver.save(
                  sess=session, save_path=save_prefix
              )
              previous_value = session.run(
                  save_graph.get_tensor_by_name(v0.name + ":0")
              )
  
      restore_graph = ops.Graph()
      with restore_graph.as_default(), self.session(
          graph=restore_graph
      ) as session:
          saver = saver_lib.import_meta_graph(save_path + ".meta")
          saver.restore(sess=session, save_path=save_path)
          (v0,) = save_graph.get_collection_ref("partvar")
          self.assertIsInstance(v0, variables.PartitionedVariable)
          self.assertAllEqual(
              previous_value,
              session.run(
                  restore_graph.get_tensor_by_name(v0.name + ":0")
              ),
          )
  
imports: import os
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import partitioned_variables
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variable_v1
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.training import saver
label_desc: Use image node_id 16 for calling the PartitionedVariablesTestCase obj's underlying member method code with example usage: obj.testMetaGraphSaveLoad() without return types