code: def test_tempo_no_onsets(
      start_bpm, aggregate, onsets, sr, hop_length
  ):
      tempo = librosa.feature.tempo(
          onset_envelope=onsets,
          sr=sr,
          hop_length=hop_length,
          start_bpm=start_bpm,
          aggregate=aggregate,
      )
      # Depending on bin resolution, we might not be able to match exactly
      assert np.allclose(tempo, start_bpm, atol=1e0)
  
imports: import os
  import pytest
  from contextlib import nullcontext
  import numpy
  import scipy.stats
  import librosa
  from test_core import files, load
label_desc: Use image node_id 6 for calling a global function with example usage: test_tempo_no_onsets(start_bpm, aggregate, onsets, sr, hop_length) without return types