code: def _get_sample(path, resample=None):
      effects = [["remix", "1"]]
      if resample:
          effects.extend(
              [
                  ["lowpass", f"{resample // 2}"],
                  ["rate", f"{resample}"],
              ]
          )
      return torchaudio.sox_effects.apply_effects_file(
          path, effects=effects
      )
  
file_path: audio/examples/tutorials/audio_feature_augmentation_tutorial.py
imports: import torch
  import torchaudio
  import torchaudio.transforms
  import librosa
  import matplotlib.pyplot
  from IPython.display import Audio
  from torchaudio.utils import download_asset
label_desc: Use image node_id 1 for calling a global function with example usage: _get_sample(path, resample) and returns: torchaudio