code: def test_key_to_degrees(key, ref_degrees):
      degrees = librosa.key_to_degrees(key)
      assert len(degrees) == len(ref_degrees)
      for d, rd in zip(degrees, ref_degrees):
          assert d == rd
  
imports: import os
  import sys
  import warnings
  import numpy
  import pytest
  import librosa
label_desc: Use image node_id 10 for calling a global function with example usage: test_key_to_degrees(key, ref_degrees) without return types