code: def _get_mocked_samples(dataset_dir: str, subset: str, seed: int):
      samples = []
      subset_dir = os.path.join(dataset_dir, subset)
      label_path = os.path.join(dataset_dir, "all.iob.snips.txt")
      os.makedirs(subset_dir, exist_ok=True)
      num_utterance_per_split = 10
      for spk in _SPEAKERS:
          for i in range(num_utterance_per_split):
              wav_stem = f"{spk}-snips-{subset}-{i}"
              wav_path = os.path.join(subset_dir, f"{wav_stem}.wav")
              waveform = _save_wav(wav_path, seed)
              transcript, iob, intent = (
                  f"{spk}XXX",
                  f"{spk}YYY",
                  f"{spk}ZZZ",
              )
              label = (
                  "BOS " + transcript + " EOS\tO " + iob + " " + intent
              )
              _save_label(label_path, wav_stem, label)
              samples.append(
                  (
                      waveform,
                      _SAMPLE_RATE,
                      wav_stem,
                      transcript,
                      iob,
                      intent,
                  )
              )
      return samples
  
file_path: audio/test/torchaudio_unittest/datasets/snips_test.py
imports: import os
  from torchaudio.datasets import snips
  from torchaudio_unittest.common_utils import get_whitenoise, save_wav, TempDirMixin, TorchaudioTestCase
label_desc: Use image node_id 3 for calling a global function with example usage: _get_mocked_samples(dataset_dir, subset, seed) and returns: samples