code: def test_save(jam_in, audio_file, strict, fmt):
      jam = muda.load_jam_audio(jam_in, audio_file)
  
      _, jamfile = tempfile.mkstemp(suffix=".jams")
      _, audfile = tempfile.mkstemp(suffix=".wav")
  
      muda.save(audfile, jamfile, jam, strict=strict, fmt=fmt)
  
      jam2 = muda.load_jam_audio(jamfile, audfile, fmt=fmt)
      jam2_raw = jams.load(jamfile, fmt=fmt)
  
      os.unlink(audfile)
      os.unlink(jamfile)
  
      assert hasattr(jam2.sandbox, "muda")
      assert "_audio" in jam2.sandbox.muda
      assert "_audio" not in jam2_raw.sandbox.muda
  
      duration = librosa.get_duration(**jam2.sandbox.muda["_audio"])
  
      assert jam2.file_metadata.duration == duration
  
file_path: muda/tests/test_core.py
imports: import tempfile
  import os
  import six
  import numpy
  import jams
  import librosa
  import muda
  import pytest
label_desc: Use image node_id 6 for calling a global function with example usage: test_save(jam_in, audio_file, strict, fmt) without return types