code: def get_mock_dataset(root_dir):
      """
      root_dir: root directory of the mocked data
      """
      mocked_samples = []
      dataset_dir = os.path.join(root_dir, "VCTK-Corpus-0.92")
      os.makedirs(dataset_dir, exist_ok=True)
      sample_rate = 48000
      seed = 0
  
      for speaker in range(225, 230):
          speaker_id = "p" + str(speaker)
          audio_dir = os.path.join(
              dataset_dir, "wav48_silence_trimmed", speaker_id
          )
          os.makedirs(audio_dir, exist_ok=True)
  
          file_dir = os.path.join(dataset_dir, "txt", speaker_id)
          os.makedirs(file_dir, exist_ok=True)
  
          for utterance_id in range(1, 11):
              filename = f"{speaker_id}_{utterance_id:03d}_mic2"
              audio_file_path = os.path.join(
                  audio_dir, filename + ".wav"
              )
  
              data = get_whitenoise(
                  sample_rate=sample_rate,
                  duration=0.01,
                  n_channels=1,
                  dtype="float32",
                  seed=seed,
              )
              save_wav(audio_file_path, data, sample_rate)
  
              txt_file_path = os.path.join(
                  file_dir, filename[:-5] + ".txt"
              )
              transcript = _TRANSCRIPT[utterance_id - 1]
              with open(txt_file_path, "w") as f:
                  f.write(transcript)
  
              sample = (
                  normalize_wav(data),
                  sample_rate,
                  transcript,
                  speaker_id,
                  utterance_id,
              )
              mocked_samples.append(sample)
              seed += 1
      return mocked_samples
  
file_path: audio/test/torchaudio_unittest/datasets/vctk_test.py
imports: import os
  from pathlib import Path
  from torchaudio.datasets import vctk
  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_dataset(root_dir) and returns: mocked_samples