code: def test_intervals_sorted(intervals):
      freqs = librosa.interval_frequencies(
          12, fmin=1, intervals=intervals, sort=False
      )
      freqs_s = librosa.interval_frequencies(
          12, fmin=1, intervals=intervals, sort=True
      )
  
      assert not np.allclose(freqs, freqs_s)
  
      assert np.allclose(sorted(freqs), freqs_s)
  
file_path: librosa/tests/test_intervals.py
imports: import os
  import sys
  import warnings
  import numpy
  import pytest
  import librosa
label_desc: Use image node_id 6 for calling a global function with example usage: test_intervals_sorted(intervals) without return types