code: def parse_args():
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "--dataset",
          dest="dataset",
          help="dataset",
          default="coco_2014_minival",
          type=str,
      )
      parser.add_argument(
          "--detections",
          dest="detections",
          help="detections pkl file",
          default="",
          type=str,
      )
      parser.add_argument(
          "--thresh",
          dest="thresh",
          help="detection prob threshold",
          default=0.9,
          type=float,
      )
      parser.add_argument(
          "--output-dir",
          dest="output_dir",
          help="output directory",
          default="./tmp/vis-output",
          type=str,
      )
      parser.add_argument(
          "--first",
          dest="first",
          help="only visualize the first k images",
          default=0,
          type=int,
      )
      if len(sys.argv) == 1:
          parser.print_help()
          sys.exit(1)
      args = parser.parse_args()
      return args
  
file_path: dense-pose/tools/visualize_results.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import argparse
  import cPickle
  import cv2
  import os
  import sys
  from detectron.datasets.json_dataset import JsonDataset
  import detectron.utils.vis
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: args