code: def get_args():
      parser = argparse.ArgumentParser(description="generate json file")
      parser.add_argument(
          "--src",
          "-s",
          type=os.path.abspath,
          required=True,
          help="path to source language data",
      )
      parser.add_argument(
          "--trg",
          "-t",
          type=os.path.abspath,
          required=True,
          help="path to target language data",
      )
      parser.add_argument(
          "--src-vocab",
          "-sv",
          type=os.path.abspath,
          required=True,
          help="path to source vocabulary",
      )
      parser.add_argument(
          "--trg-vocab",
          "-tv",
          type=os.path.abspath,
          required=True,
          help="path to target vocabulary",
      )
      parser.add_argument(
          "--dest",
          "-d",
          type=os.path.abspath,
          default="data.json",
          help="path to output json file",
      )
      args = parser.parse_args()
      return args
  
file_path: espnet/egs/iwslt16/mt1/local/generate_json.py
imports: import argparse
  import json
  import os
  from logging import getLogger
  from typing import Dict, List
label_desc: Use image node_id 1 for calling a global function with example usage: get_args() and returns: args