code: def get_args():
      parser = argparse.ArgumentParser(
          """Extract noises from the corpus based on the non-speech regions.
          e.g. {} /export/corpora4/CHiME5/audio/train/ \\
                  /export/corpora4/CHiME5/transcriptions/train/ \\
                  /export/b05/zhiqiw/noise/""".format(
              sys.argv[0]
          )
      )
  
      parser.add_argument("--segment-length", default=20)
      parser.add_argument(
          "audio_dir",
          help="""Location of the CHiME5 Audio files.
          e.g. /export/corpora4/CHiME5/audio/train/""",
      )
      parser.add_argument(
          "trans_dir",
          help="""Location of the CHiME5 Transcriptions.
          e.g. /export/corpora4/CHiME5/transcriptions/train/""",
      )
      parser.add_argument(
          "audio_list",
          help="""List of ids of the CHiME5 recordings from which noise is extracted.
          e.g. local/distant_audio_list""",
      )
      parser.add_argument(
          "out_dir",
          help="Output directory to write noise files. e.g. /export/b05/zhiqiw/noise/",
      )
  
      args = parser.parse_args()
      return args
  
file_path: espnet/egs2/chime6/asr1/local/extract_noises.py
imports: import argparse
  import json
  import math
  import os
  import sys
  import numpy
  import scipy.io.wavfile
label_desc: Use image node_id 1 for calling a global function with example usage: get_args() and returns: args