class_docstr: Resample audio to a specified framerate.
code: def __init__(self, opts: argparse.Namespace, *args, **kwargs) -> None:
      super().__init__(opts, *args, **kwargs)
      self.sample_rate = getattr(
          opts, "audio_augmentation.audio_resample.audio_fps"
      )
      self.effects = [["rate", str(self.sample_rate)]]
  
imports: import argparse
  import math
  import pathlib
  import random
  from typing import Callable, Dict, List, Optional, Union
  import torch
  import torchaudio
  from data.transforms import TRANSFORMATIONS_REGISTRY, BaseTransformation
  from data.transforms.audio_aux import mfccs
label_desc: Use image node_id 2 to create a new AudioResample object from inherited base classes: BaseTransformation with example: obj = AudioResample(opts)