code: def load_jam_audio(
      jam_in,
      audio_file,
      validate=True,
      strict=True,
      fmt="auto",
      **kwargs,
  ):
      """Load a jam and pack it with audio.
  
      Parameters
      ----------
      jam_in : str, file descriptor, jams.JAMS, or None
          JAMS filename, open file-descriptor, or object to load.
          See ``jams.load`` for acceptable formats.
  
          If `None` is provided, an empty JAMS object is constructed.
  
      audio_file : str
          Audio filename to load
  
      validate : bool
      strict : bool
      fmt : str
          Parameters to `jams.load`
  
      kwargs : additional keyword arguments
          See `librosa.load`
  
      Returns
      -------
      jam : jams.JAMS
          A jams object with audio data in the top-level sandbox
  
      Notes
      -----
      This operation can modify the `file_metadata.duration` field of `jam_in`:
      If it is not currently set, it will be populated with the duration of the
      audio file.
  
      See Also
      --------
      jams.load
      librosa.core.load
  
  
      Examples
      --------
  
      Load a JAMS object and audio from disk
  
      >>> jam = muda.load_jam_audio('my_file.jams', 'my_file.wav')
  
  
      Load an audio file with no jams annotation
  
      >>> jam = muda.load_jam_audio(None, 'my_file.wav')
  
      """
  
      if isinstance(jam_in, jams.JAMS):
          jam = jam_in
      elif jam_in is None:
          jam = jams.JAMS()
      else:
          jam = jams.load(
              jam_in, validate=validate, strict=strict, fmt=fmt
          )
  
      y, sr = librosa.load(audio_file, **kwargs)
  
      if jam.file_metadata.duration is None:
          jam.file_metadata.duration = librosa.get_duration(y=y, sr=sr)
  
      return jam_pack(jam, _audio=dict(y=y, sr=sr))
  
file_path: muda/muda/core.py
imports: import jams
  import librosa
  import soundfile
  import jsonpickle
  import six
  from .version import version
  from .None import deformers
label_desc: Use image node_id 2 for calling a global function with example usage: load_jam_audio(jam_in, audio_file, validate, strict, fmt) and returns: jam_pack