code: def get_mock_datasets(dataset_dir):
      """
      dataset_dir: directory to the mocked dataset
      """
      os.makedirs(dataset_dir, exist_ok=True)
  
      train_seed = 0
      valid_seed = 1
      test_seed = 2
  
      mocked_train_samples = _get_mocked_samples(
          dataset_dir, "train", train_seed
      )
      mocked_valid_samples = _get_mocked_samples(
          dataset_dir, "valid", valid_seed
      )
      mocked_test_samples = _get_mocked_samples(
          dataset_dir, "test", test_seed
      )
  
      return (
          mocked_train_samples,
          mocked_valid_samples,
          mocked_test_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 4 for calling a global function with example usage: get_mock_datasets(dataset_dir) and returns: mocked_train_samples,  mocked_valid_samples,  mocked_test_samples