code: def save_examples(noise = 0.0, maxVal = 1.0, dataDir="data"):
    
    testDataDir = os.path.join(dataDir, "speech_commands", "test")
    outDir = os.path.join(dataDir, "noise_examples")
    if not os.path.exists(outDir):
      os.mkdir(outDir)
  
    # Create noise dataset with noise transform
    noiseTransform = transforms.Compose([
      LoadAudio(),
      FixAudioLength(),
      AddNoise(noise, maxVal=maxVal),
    ])
  
    noiseDataset = SpeechCommandsDataset(
      testDataDir, noiseTransform, silence_percentage=0,
    )
  
    for i in range(0, 2552, 100):
      d, target = noiseDataset[i]
      fname = os.path.join(outDir, noiseDataset.classes[target] + "_" +
                           str(i) + "_"
                           + str(int(noise*100)) + "_"
                           + str(int(maxVal*100))
                           + ".wav"
                           )
      print(d["path"], fname)
      librosa.output.write_wav(fname, d['samples'], d["sample_rate"])
docs: Generate sample noise files for listening and debugging.
    :param noise: noise value for the addNoise transform
    :param maxVal: maxVal for the addNoise transform
    :param dataDir: root dir containing speech_commands directory