code: def _save_sample(
      dataset_dir, folder, song, source, sample_rate, seed
  ):
      # create and save audio samples to corresponding files
      path = os.path.join(dataset_dir, folder)
      os.makedirs(path, exist_ok=True)
      song_path = os.path.join(path, str(song))
      os.makedirs(song_path, exist_ok=True)
      source_path = os.path.join(song_path, f"{source}{EXT}")
  
      data = get_whitenoise(
          sample_rate=sample_rate,
          duration=5,
          n_channels=2,
          seed=seed,
      )
      save_wav(source_path, data, sample_rate)
  
      sample = (data, sample_rate, 5 * sample_rate, song)
  
      return sample
  
file_path: audio/test/torchaudio_unittest/datasets/musdb_hq_test.py
imports: import os
  import torch
  from parameterized import parameterized
  from torchaudio.datasets import musdb_hq
  from torchaudio.datasets.musdb_hq import _VALIDATION_SET
  from torchaudio_unittest.common_utils import get_whitenoise, save_wav, TempDirMixin, TorchaudioTestCase
label_desc: Use image node_id 1 for calling a global function with example usage: _save_sample(dataset_dir, folder, song, source, sample_rate, seed) and returns: sample