code: def test_tempo_frequencies(n_bins, hop_length, sr):
      freqs = librosa.tempo_frequencies(
          n_bins, hop_length=hop_length, sr=sr
      )
  
      # Verify the length
      assert len(freqs) == n_bins
  
      # 0-bin should be infinite
      assert not np.isfinite(freqs[0])
  
      # remaining bins should be spaced by 1/hop_length
      if n_bins > 1:
          invdiff = (freqs[1:] ** -1) * (60.0 * sr)
          assert np.allclose(invdiff[0], hop_length)
          assert np.allclose(
              np.diff(invdiff), np.asarray(hop_length)
          ), np.diff(invdiff)
  
imports: import os
  import sys
  import warnings
  import librosa
  import numpy
  import pytest
label_desc: Use image node_id 23 for calling a global function with example usage: test_tempo_frequencies(n_bins, hop_length, sr) without return types