code: def _DumpGraph(graph, basename):
      if FLAGS.dump_graph_dir:
          name = os.path.join(FLAGS.dump_graph_dir, basename + ".pbtxt")
          with open(name, "w") as f:
              f.write(str(graph.as_graph_def()))
  
imports: import argparse
  import os
  import sys
  import numpy
  from tensorflow.compiler.tests import lstm
  from tensorflow.compiler.tests import xla_test
  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 gradients_impl
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling a global function with example usage: _DumpGraph(graph, basename) without return types