code: def set_filename(wav_path, out_path):
      wav_file = os.path.basename(wav_path)
      file_name = wav_file.split(".")[0]
      os.makedirs(os.path.join(out_path, "quant"), exist_ok=True)
      os.makedirs(os.path.join(out_path, "mel"), exist_ok=True)
      os.makedirs(os.path.join(out_path, "wav_gl"), exist_ok=True)
      os.makedirs(os.path.join(out_path, "wav"), exist_ok=True)
      wavq_path = os.path.join(out_path, "quant", file_name)
      mel_path = os.path.join(out_path, "mel", file_name)
      wav_gl_path = os.path.join(out_path, "wav_gl", file_name + ".wav")
      wav_path = os.path.join(out_path, "wav", file_name + ".wav")
      return file_name, wavq_path, mel_path, wav_gl_path, wav_path
  
file_path: TTS/TTS/bin/extract_tts_spectrograms.py
imports: import argparse
  import os
  import numpy
  import torch
  from torch.utils.data import DataLoader
  from tqdm import tqdm
  from TTS.config import load_config
  from TTS.tts.datasets import TTSDataset, load_tts_samples
  from TTS.tts.models import setup_model
  from TTS.tts.utils.speakers import SpeakerManager
  from TTS.tts.utils.text.tokenizer import TTSTokenizer
  from TTS.utils.audio import AudioProcessor
  from TTS.utils.audio.numpy_transforms import quantize
  from TTS.utils.generic_utils import count_parameters
label_desc: Use image node_id 2 for calling a global function with example usage: set_filename(wav_path, out_path) and returns: file_name,  wavq_path,  mel_path,  wav_gl_path,  wav_path