code: def main():
      with gfile.FastGFile(argv[1], "rb") as f:
          graph_def = tf.GraphDef()
          graph_def.ParseFromString(f.read())
          with tf.Graph().as_default() as graph:
              tf.import_graph_def(graph_def, name="")
              sess = tf.Session()
              output_suffix = ""
              if len(argv) == 3:
                  output_suffix = argv[2]
              output = graph.get_tensor_by_name(
                  "output" + output_suffix + ":0"
              )
              target = graph.get_tensor_by_name("target:0")
              tf_output = sess.run(output)
              bigdl_output = sess.run(target)
              print("Tensorflow output is:")
              print(tf_output)
              print("BigDL output is:")
              print(bigdl_output)
              np.testing.assert_almost_equal(tf_output, bigdl_output, 4)
  
imports: import tensorflow
  import numpy
  import os
  from tensorflow.python.platform import gfile
  from sys import argv
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types