code: def get_voices(extra_voice_dirs: List[str] = []):
      dirs = extra_voice_dirs
      voices: Dict[str, List[str]] = {}
      for d in dirs:
          subs = os.listdir(d)
          for sub in subs:
              subj = os.path.join(d, sub)
              if os.path.isdir(subj):
                  voices[sub] = (
                      list(glob(f"{subj}/*.wav"))
                      + list(glob(f"{subj}/*.mp3"))
                      + list(glob(f"{subj}/*.pth"))
                  )
      return voices
  
imports: import os
  from glob import glob
  from typing import Dict, List
  import librosa
  import numpy
  import torch
  import torchaudio
  from scipy.io.wavfile import read
  from TTS.utils.audio.torch_transforms import TorchSTFT
label_desc: Use image node_id 10 for calling a global function with example usage: get_voices(extra_voice_dirs) and returns: voices