code: def audio_info(filepath: tp.Union[str, Path]) -> AudioFileInfo:
      # torchaudio no longer returns useful duration informations for some formats like mp3s.
      filepath = Path(filepath)
      if filepath.suffix in [
          ".flac",
          ".ogg",
      ]:  # TODO: Validate .ogg can be safely read with av_info
          # ffmpeg has some weird issue with flac.
          return _soundfile_info(filepath)
      else:
          return _av_info(filepath)
  
file_path: audiocraft/audiocraft/data/audio.py
imports: from dataclasses import dataclass
  from pathlib import Path
  import logging
  import typing
  import numpy
  import soundfile
  import torch
  from torch.nn import functional
  import av
  import subprocess
  from .audio_utils import f32_pcm, normalize_audio
label_desc: Use image node_id 4 for calling a global function with example usage: audio_info(filepath) and returns: _soundfile_info, _av_info