docstr: Restores after the first should not modify the graph.
docstr_tok: ["Restores","after","the","first","should","not","modify","the","graph","."]
code: def testManyRestoresGraph(self):
      """Restores after the first should not modify the graph."""
      with context.graph_mode():
          graph = ops.Graph()
          with graph.as_default(), self.session(graph):
              checkpoint_directory = self.get_temp_dir()
              checkpoint_prefix = os.path.join(
                  checkpoint_directory, "ckpt"
              )
              obj = trackable_utils.Checkpoint()
              obj.var = variable_scope.get_variable(
                  name="v", initializer=0.0
              )
              obj.opt = adam.AdamOptimizer(0.1)
              obj.opt.minimize(obj.var.read_value())
              self.evaluate(trackable_utils.gather_initializers(obj))
              save_path = obj.save(checkpoint_prefix)
              obj.restore(save_path)
              before_ops = graph.get_operations()
              obj.restore(save_path)
              self.assertEqual(before_ops, graph.get_operations())
  
imports: import os
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.checkpoint import checkpoint_options
  from tensorflow.python.client import session
  from tensorflow.python.eager import context
  from tensorflow.python.eager import test
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import state_ops
  from tensorflow.python.ops import template
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.trackable import autotrackable
  from tensorflow.python.training import adam
  from tensorflow.python.training import checkpoint_utils
label_desc: Use image node_id 4 for calling the CheckpointingTests obj's underlying member method code with example usage: obj.testManyRestoresGraph() without return types