code: def testImportedGraphVariablesToRestore(self):
      g = ops.Graph()
      with g.as_default():
          variables.Variable(10.0, name="v")
      # Export and import the graph into a new graph.
      g_copy = self._ExportAndImportGraph(g)
      with g_copy.as_default():
          ema = moving_averages.ExponentialMovingAverage(
              0.25, name="foo_avg"
          )
          vars_to_restore = ema.variables_to_restore()
          # There should only be one variable in vars_to_restore. This is important
          # to check because when importing from a GraphDef, TF makes duplicate
          # python Variable objects referring to the same underlying variable. We
          # need to be sure that two variables referring to the same variable don't
          # both get added to vars_to_restore.
          self.assertEqual(len(vars_to_restore), 1)
          self.assertIn("v/foo_avg", vars_to_restore)
  
imports: import numpy
  from tensorflow.python.compiler.xla.experimental import xla_sharding
  from tensorflow.python.eager import context
  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 gen_state_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.training import moving_averages
  from tensorflow.python.training import saver
label_desc: Use image node_id 30 for calling the ExponentialMovingAverageTest obj's underlying member method code with example usage: obj.testImportedGraphVariablesToRestore() without return types