code: def main(unused_args):
      if not os.path.exists(FLAGS.input):
          print("input does not exist: %s" % FLAGS.input)
          sys.exit(-1)
  
      input_files = []
      if os.path.isdir(FLAGS.input):
          input_files.extend(
              [
                  os.path.join(FLAGS.input, tensor)
                  for tensor in os.listdir(FLAGS.input)
              ]
          )
      else:
          input_files.append(FLAGS.input)
  
      image_shape = [int(dim) for dim in FLAGS.image_shape.split(",")]
      tensors_to_images(input_files, image_shape, FLAGS.add_softmax)
  
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 3 for calling a global function with example usage: main(unused_args) without return types