code: def beats(ysr):
      y, sr = ysr
      tempo, beats = librosa.beat.beat_track(y=y, sr=sr)
      return beats
  
imports: from typing import Union
  import warnings
  import os
  import numpy
  import scipy
  from scipy.spatial.distance import cdist, pdist, squareform
  import pytest
  from test_core import srand
  import librosa
label_desc: Use image node_id 36 for calling a global function with example usage: beats(ysr) and returns: beats