code: def main(argv):
      if argv[1] == "-f":
          wavFile = argv[2]
          annotationFile = argv[3]
          annotation2files(wavFile, annotationFile)
      elif argv[1] == "-d":
          inputFolder = argv[2]
          types = ("*.txt", "*.csv")
          annotationFilesList = []
          for files in types:
              annotationFilesList.extend(
                  glob.glob(os.path.join(inputFolder, files))
              )
          for anFile in annotationFilesList:
              wavFile = os.path.splitext(anFile)[0] + ".wav"
              if not os.path.isfile(wavFile):
                  wavFile = os.path.splitext(anFile)[0] + ".mp3"
                  if not os.path.isfile(wavFile):
                      print("Audio file not found!")
                      return
              annotation2files(wavFile, anFile)
  
file_path: pyAudioAnalysis/pyAudioAnalysis/audacityAnnotation2WAVs.py
imports: import glob
  import os
  import audioBasicIO
  import sys
  import csv
  import scipy.io.wavfile
label_desc: Use image node_id 4 for calling a global function with example usage: main(argv) without return types