code: def parse_args():
      """Parses command line arguments."""
      parser = argparse.ArgumentParser()
      parser.register("type", "bool", lambda v: v.lower() == "true")
      parser.add_argument(
          "--input",
          type=str,
          default="",
          help="TensorFlow 'GraphDef' file to load.",
      )
      parser.add_argument(
          "--output",
          type=str,
          default="",
          help="File to save the output graph to.",
      )
      parser.add_argument(
          "--input_names",
          type=str,
          default="",
          help="Input node names, comma separated.",
      )
      parser.add_argument(
          "--output_names",
          type=str,
          default="",
          help="Output node names, comma separated.",
      )
      parser.add_argument(
          "--frozen_graph",
          nargs="?",
          const=True,
          type="bool",
          default=True,
          help="""\
        If true, the input graph is a binary frozen GraphDef
        file; if false, it is a text GraphDef proto file.\
        """,
      )
      parser.add_argument(
          "--placeholder_type_enum",
          type=str,
          default=str(dtypes.float32.as_datatype_enum),
          help="""\
        The AttrValue enum to use for placeholders.
        Or a comma separated list, one value for each placeholder.\
        """,
      )
      parser.add_argument(
          "--toco_compatible",
          type=bool,
          default=False,
          help="""\
        If true, only use ops compatible with Tensorflow
        Lite Optimizing Converter.\
        """,
      )
      parser.add_argument(
          "--placeholder_to_const_names",
          type=str,
          default="",
          help="""\
        List of PlaceholderWithDefault or Placeholder node names and
        their new value to be converted to Constant node, comma separated.
        eg: --placeholder_to_const_names=phase_train=False\
        """,
      )
      return parser.parse_known_args()
  
file_path: tensorflow/tensorflow/python/tools/optimize_for_inference.py
imports: import argparse
  import os
  import sys
  from absl import app
  from google.protobuf import text_format
  from tensorflow.core.framework import graph_pb2
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import graph_io
  from tensorflow.python.platform import gfile
  from tensorflow.python.tools import optimize_for_inference_lib
label_desc: Use image node_id 3 for calling a global function with example usage: parse_args() and returns: parser