class_docstr: Test `apply_effects_file` in multi-process dataloader setting
class_docstr_tok: ["Test","`","apply_effects_file","`","in","multi-process","dataloader","setting"]
code: def _generate_dataset(self, num_samples=128):
      flist = []
      for i in range(num_samples):
          sample_rate = np.random.choice([8000, 16000, 44100])
          dtype = np.random.choice(
              ["float32", "int32", "int16", "uint8"]
          )
          data = get_whitenoise(
              n_channels=2,
              sample_rate=sample_rate,
              duration=1,
              dtype=dtype,
          )
          path = self.get_temp_path(
              f"{i:03d}_{dtype}_{sample_rate}.wav"
          )
          save_wav(path, data, sample_rate)
          flist.append(path)
      return flist
  
imports: import os
  import platform
  import sys
  from concurrent.futures import ProcessPoolExecutor
  from typing import List, Tuple
  from unittest import skipIf
  import numpy
  import torch
  import torchaudio
  from torchaudio_unittest.common_utils import get_whitenoise, PytorchTestCase, save_wav, skipIfNoSox, TempDirMixin
label_desc: Use image node_id 1 for calling the TestSoxEffectsDataset obj's underlying member method code with example usage: obj._generate_dataset(num_samples) and returns: flist