code: def parse_args():
      """Parses command line arguments."""
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "--input", type=str, help="tensor file/dir path."
      )
      parser.add_argument(
          "--output_dir",
          type=str,
          default=".",
          help="image output dir.",
      )
      parser.add_argument(
          "--image_shape",
          type=str,
          help="target image shape, e.g, 224,224,3",
      )
      parser.add_argument(
          "--add_softmax",
          action="store_true",
          help="add softmax before convert to image",
      )
      return parser.parse_known_args()
  
file_path: mace/tools/image/tensor_to_image.py
imports: import argparse
  import os
  import sys
  import six
  import numpy
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser