code: def read_audio_file(audiopath: str):
      if audiopath[-4:] == ".wav":
          audio, lsr = load_wav_to_torch(audiopath)
      elif audiopath[-4:] == ".mp3":
          audio, lsr = librosa.load(audiopath, sr=None)
          audio = torch.FloatTensor(audio)
      else:
          assert (
              False
          ), f"Unsupported audio format provided: {audiopath[-4:]}"
  
      # Remove any channel data.
      if len(audio.shape) > 1:
          if audio.shape[0] < 5:
              audio = audio[0]
          else:
              assert audio.shape[1] < 5
              audio = audio[:, 0]
  
      return audio, lsr
  
imports: import os
  from glob import glob
  from typing import Dict, List
  import librosa
  import numpy
  import torch
  import torchaudio
  from scipy.io.wavfile import read
  from TTS.utils.audio.torch_transforms import TorchSTFT
label_desc: Use image node_id 3 for calling a global function with example usage: read_audio_file(audiopath) and returns: audio,  lsr