docstr: Export and import graph into a new graph.
docstr_tok: ["Export","and","import","graph","into","a","new","graph","."]
code: def _ExportAndImportGraph(self, graph):
      """Export and import graph into a new graph."""
      meta_graph = saver_lib.export_meta_graph(
          graph=graph, collection_list=graph.get_all_collection_keys()
      )
      graph_copy = ops.Graph()
      with graph_copy.as_default():
          _ = saver_lib.import_meta_graph(meta_graph)
      return graph_copy
  
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 29 for calling the ExponentialMovingAverageTest obj's underlying member method code with example usage: obj._ExportAndImportGraph(graph) and returns: graph_copy