code: def get_wham_noise_filenames(data_root_folder, sample_rate):
      """
      This function lists the WHAM! noise files to be used in dynamic mixing
  
          data_root_folder (str) : specifies the system path for the top folder for the WHAM!, WHAMR! dataset
          sample_rate (int) : specifies the sample rate in Hz
  
      """
  
      if sample_rate == 8000:
          noise_path = "wav8k/min/tr/noise/"
      elif sample_rate == 16000:
          noise_path = "wav16k/min/tr/noise/"
      else:
          raise ValueError("Unsupported Sampling Rate")
  
      noise_files = glob.glob(
          os.path.join(data_root_folder, noise_path, "*.wav")
      )
      return noise_files
  
file_path: speechbrain/recipes/WHAMandWHAMR/enhancement/dynamic_mixing.py
imports: import speechbrain
  import numpy
  import torch
  import torchaudio
  import glob
  import os
  from pathlib import Path
  import random
  from speechbrain.processing.signal_processing import rescale
  from speechbrain.dataio.batch import PaddedBatch
label_desc: Use image node_id 2 for calling a global function with example usage: get_wham_noise_filenames(data_root_folder, sample_rate) and returns: noise_files