code: def jam_loader(request):
      if request.param == 0:
          yield jams.JAMS()
  
      elif request.param == 1:
          yield "tests/data/fixture.jams"
  
      elif request.param == 2:
          yield jams.load("tests/data/fixture.jams")
  
      elif request.param == 3:
          with open("tests/data/fixture.jams", "r") as fdesc:
              yield fdesc
      else:
          yield None
  
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 4 for calling a global function with example usage: jam_loader(request) without return types