code: def deprecated_test_beat(infile):
      DATA = load(infile)
  
      (bpm, beats) = librosa.beat.beat_track(
          y=None,
          sr=8000,
          hop_length=32,
          onset_envelope=DATA["onsetenv"][0],
      )
  
      beat_times = librosa.frames_to_time(beats, sr=8000, hop_length=32)
      assert np.allclose(beat_times, DATA["beats"])
  
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 15 for calling a global function with example usage: deprecated_test_beat(infile) without return types