code: def testImportWhileLoopInWhileLoop(self):
      # Create a simple while loop.
      with ops.Graph().as_default():
          var = variables.Variable(0.0)
          _, output = while_loop.while_loop(
              lambda i, x: i < 5,
              lambda i, x: (i + 1, x * 2.0),
              [0, var],
          )
          output_name = output.name
  
          # Generate a MetaGraphDef containing the while loop with an export scope.
          meta_graph_def, _ = meta_graph.export_scoped_meta_graph()
  
      # Restore the MetaGraphDef in a while loop in a new graph.
      with ops.Graph().as_default():
  
          def body(i, _):
              meta_graph.import_scoped_meta_graph(meta_graph_def)
              return i + 1, ops.get_default_graph().get_tensor_by_name(
                  output_name
              )
  
          _, x = while_loop.while_loop(
              lambda i, x: i < 2, body, [0, 0.0], name=""
          )
          with session.Session() as sess:
              self.evaluate(variables.global_variables_initializer())
              self.evaluate(x)
  
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 5 for calling the ScopedMetaGraphTest obj's underlying member method code with example usage: obj.testImportWhileLoopInWhileLoop() and returns: unknown,  ops