code: def folderAnnotation2folders(sourceFolder, targetFolder):
      """
      Break an audio stream to segments of interest for all files in the sourceFolder
  
      - sourceFolder:    path to Folder of all source audio file and .segments file
      - targetFolder:    path to Folder where user want to store the class folders
      """
      for fileName in glob.glob(
          os.path.join(sourceFolder, "*.segments")
      ):
          fileName = fileName.split(".")[0]
          annotation2folders(
              "%s.wav" % (fileName),
              "%s.segments" % (fileName),
              targetFolder,
          )
  
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 3 for calling a global function with example usage: folderAnnotation2folders(sourceFolder, targetFolder) without return types