code: def _load_waveform(
      root: str,
      filename: str,
      exp_sample_rate: int,
  ):
      path = os.path.join(root, filename)
      waveform, sample_rate = torchaudio.load(path)
      if exp_sample_rate != sample_rate:
          raise ValueError(
              f"sample rate should be {exp_sample_rate}, but got {sample_rate}"
          )
      return waveform
  
file_path: audio/src/torchaudio/datasets/utils.py
imports: import logging
  import os
  import tarfile
  import zipfile
  from typing import Any, List, Optional
  import torchaudio
label_desc: Use image node_id 3 for calling a global function with example usage: _load_waveform(root, filename, exp_sample_rate) and returns: waveform