code: def testMetricVariablesCollectionLoadsBytesList(self):
      with ops.Graph().as_default() as graph1:
          v1 = variables.Variable(
              [1, 2, 3], shape=[3], dtype=dtypes.float64, name="v"
          )
  
      orig_meta_graph, _ = meta_graph.export_scoped_meta_graph(
          graph=graph1
      )
  
      # Copy bytes list from global variables collection to metric variables.
      orig_meta_graph.collection_def[
          ops.GraphKeys.METRIC_VARIABLES
      ].CopyFrom(orig_meta_graph.collection_def["variables"])
  
      with ops.Graph().as_default() as graph2:
          meta_graph.import_scoped_meta_graph(orig_meta_graph)
          var_list = graph2.get_collection(
              ops.GraphKeys.METRIC_VARIABLES
          )
          self.assertEqual(len(var_list), 1)
          v2 = var_list[0]
          self.assertIsInstance(v2, variables.Variable)
          self.assertEqual(v1.name, v2.name)
          self.assertEqual(v1.dtype, v2.dtype)
          self.assertEqual(v1.shape, v2.shape)
  
imports: import math
  import os.path
  import random
  import shutil
  from tensorflow.core.framework import graph_pb2
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.python.client import session
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import function
  from tensorflow.python.framework import meta_graph
  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 data_flow_ops
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import metrics
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import partitioned_variables
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variables
  from tensorflow.python.ops import while_loop
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import test
  from tensorflow.python.training import queue_runner_impl
label_desc: Use image node_id 9 for calling the SimpleMetaGraphTest obj's underlying member method code with example usage: obj.testMetricVariablesCollectionLoadsBytesList() without return types