code: def test_jam_pack():
      jam = jams.JAMS()
  
      sr = 22050
      y = np.zeros(sr)
  
      muda.jam_pack(jam, y=y, sr=sr)
  
      # Make sure the jam now has a mudabox
      assert hasattr(jam.sandbox, "muda")
      assert hasattr(jam.sandbox.muda, "history")
      assert hasattr(jam.sandbox.muda, "state")
  
      assert jam.sandbox.muda["y"] is y
      assert jam.sandbox.muda["sr"] == sr
  
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 1 for calling a global function with example usage: test_jam_pack() without return types