code: def test_hz_to_octs(tuning, bins_per_octave):
      freq = np.asarray([55, 110, 220, 440]) * (
          2.0 ** (tuning / bins_per_octave)
      )
      octs = [1, 2, 3, 4]
      oct_out = librosa.hz_to_octs(
          freq, tuning=tuning, bins_per_octave=bins_per_octave
      )
  
      assert np.allclose(octs, oct_out)
  
imports: import os
  import sys
  import warnings
  import librosa
  import numpy
  import pytest
label_desc: Use image node_id 8 for calling a global function with example usage: test_hz_to_octs(tuning, bins_per_octave) without return types