code: def get_args():
      parser = argparse.ArgumentParser(
          description="Obtain speech segments for all wav files in a dir."
          " Writes the output to the stdout."
          "Usage: apply_webrtcvad.py [options...] <data-dir>"
          """E.g.: apply_webrtcvad.py --aggressiveness 2 --reco2channels
          data/reco2channels data""",
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
      )
  
      parser.add_argument(
          "--mode",
          type=int,
          dest="mode",
          default=1,
          help="""Integer in {0,1,2,3} specifying the VAD aggressiveness.
          0 is the least aggressive"""
          " about filtering out non-speech, 3 is the most aggressive.",
      )
  
      parser.add_argument(
          "--reco2channels",
          type=str,
          dest="reco2ch_file",
          help="""In multi-channel setting, specifying this
          would avoid computing VAD for each channel
          separately. Only first channel will be used
          to compute VAD and all channels will share.""",
      )
  
      parser.add_argument(
          "data_dir", help="Data directory containing wav.scp"
      )
  
      args = parser.parse_args()
  
      return args
  
file_path: espnet/egs/libri_css/asr1/local/segmentation/apply_webrtcvad.py
imports: import argparse
  import collections
  import contextlib
  import os
  import sys
  import wave
  import webrtcvad
label_desc: Use image node_id 1 for calling a global function with example usage: get_args() and returns: args