code: def _get_audio_meta(
      file_path: str, minimal: bool = True
  ) -> AudioMeta:
      """AudioMeta from a path to an audio file.
  
      Args:
          file_path (str): Resolved path of valid audio file.
          minimal (bool): Whether to only load the minimal set of metadata (takes longer if not).
      Returns:
          AudioMeta: Audio file path and its metadata.
      """
      info = audio_info(file_path)
      amplitude: tp.Optional[float] = None
      if not minimal:
          wav, sr = audio_read(file_path)
          amplitude = wav.abs().max().item()
      return AudioMeta(
          file_path, info.duration, info.sample_rate, amplitude
      )
  
imports: import argparse
  import copy
  from concurrent.futures import ThreadPoolExecutor, Future
  from dataclasses import dataclass, fields
  from contextlib import ExitStack
  from functools import lru_cache
  import gzip
  import json
  import logging
  import os
  from pathlib import Path
  import random
  import sys
  import typing
  import torch
  import torch.nn.functional
  from .audio import audio_read, audio_info
  from .audio_utils import convert_audio
  from .zip import PathInZip
label_desc: Use image node_id 1 for calling a global function with example usage: _get_audio_meta(file_path, minimal) and returns: AudioMeta