code: def get_audio_info(media_path: str) -> Dict[str, Any]:
      """
      Returns whatever ffprobe returns. Of particular use are things such as the
      encoder ("codec_name") used for audio encoding, the sample rate ("sample_rate"),
      and length in seconds ("duration")
  
      Accepts as input either an audio or video path.
      """
      try:
          local_media_path = pathmgr.get_local_path(media_path)
      except RuntimeError:
          raise FileNotFoundError(
              f"Provided media path {media_path} does not exist"
          )
  
      probe = ffmpeg.probe(local_media_path, cmd=FFPROBE_PATH)
      audio_info = next(
          (
              stream
              for stream in probe["streams"]
              if stream["codec_type"] == "audio"
          ),
          None,
      )
  
      assert (
          audio_info is not None
      ), "Error retrieving audio metadata, please verify that an audio stream exists"
  
      return audio_info
  
imports: import math
  import os
  import shutil
  import tempfile
  from typing import Any, Dict, List, Optional
  import ffmpeg
  import numpy
  from augly.audio import utils
  from augly.utils import pathmgr, SILENT_AUDIO_PATH
  from augly.utils.ffmpeg import FFMPEG_PATH, FFPROBE_PATH
  from vidgear.gears import WriteGear
label_desc: Use image node_id 5 for calling a global function with example usage: get_audio_info(media_path) and returns: audio_info