code: def get_mock_data(root_dir, labels):
      """
      root_dir: path
      labels: list of labels
      """
      mocked_data = []
      base_dir = os.path.join(root_dir, "waves_yesno")
      os.makedirs(base_dir, exist_ok=True)
      for i, label in enumerate(labels):
          filename = f'{"_".join(str(l) for l in label)}.wav'
          path = os.path.join(base_dir, filename)
          data = get_whitenoise(
              sample_rate=8000,
              duration=6,
              n_channels=1,
              dtype="int16",
              seed=i,
          )
          save_wav(path, data, 8000)
          mocked_data.append(normalize_wav(data))
      return mocked_data
  
file_path: audio/test/torchaudio_unittest/datasets/yesno_test.py
imports: import os
  from pathlib import Path
  from torchaudio.datasets import yesno
  from torchaudio_unittest.common_utils import get_whitenoise, normalize_wav, save_wav, TempDirMixin, TorchaudioTestCase
label_desc: Use image node_id 1 for calling a global function with example usage: get_mock_data(root_dir, labels) and returns: mocked_data