code: def to_graph_def(graph_path):
      with tf.Session() as sess:
          ret = create_model()
          # sess.run(tf.compat.v1.global_variables_initializer())
          tf.global_variables_initializer().run()
          graph_summary = GraphSummary(graph_def=sess.graph_def)
          graph_summary.Summary()
          graph_def = graph_util.convert_variables_to_constants(
              sess, sess.graph_def, graph_summary["outputs"]
          )
          with open(graph_path, "wb") as f:
              f.write(graph_def.SerializeToString())
  
file_path: delta/gcompiler/example/python/standard_transformer/train.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
  from tensorflow.python.framework import graph_util
  from model import *
  from summarize_graph import GraphSummary
label_desc: Use image node_id 2 for calling a global function with example usage: to_graph_def(graph_path) without return types