code: def apply_codec(waveform, sample_rate, format, encoder=None):
      encoder = torchaudio.io.AudioEffector(
          format=format, encoder=encoder
      )
      return encoder.apply(waveform, sample_rate)
  
file_path: audio/examples/tutorials/audio_data_augmentation_tutorial.py
imports: import torch
  import torchaudio
  import torchaudio.functional
  import matplotlib.pyplot
  from IPython.display import Audio
  from torchaudio.utils import download_asset
label_desc: Use image node_id 4 for calling a global function with example usage: apply_codec(waveform, sample_rate, format, encoder) and returns: encoder