code: def save_graph_to_file(graph_file_name, module_spec, class_count):
      """Saves an graph to file, creating a valid quantized one if necessary."""
      sess, _, _, _, _, _ = build_eval_session(module_spec, class_count)
      graph = sess.graph
  
      output_graph_def = tf.graph_util.convert_variables_to_constants(
          sess, graph.as_graph_def(), [FLAGS.final_tensor_name]
      )
  
      with tf.gfile.GFile(graph_file_name, "wb") as f:
          f.write(output_graph_def.SerializeToString())
  
imports: from absl import logging
  import argparse
  import collections
  from datetime import datetime
  import hashlib
  import os.path
  import random
  import re
  import sys
  import numpy
  import tensorflow
  import tensorflow_hub
  from tensorflow.contrib import quantize
label_desc: Use image node_id 19 for calling a global function with example usage: save_graph_to_file(graph_file_name, module_spec, class_count) without return types