code: def get_args():
      parser = argparse.ArgumentParser(description="my script")
      parser.add_argument(
          "--path", "-p", required=True, help="path to decode dir"
      )
      args = parser.parse_args()
      return args
  
file_path: espnet/egs/iwslt16/mt1/local/extract_recog_text.py
imports: import argparse
  import glob
  import json
  import os
  from itertools import takewhile
label_desc: Use image node_id 1 for calling a global function with example usage: get_args() and returns: args