code: def test_beats(self):
      res = run_script("beats", det_suffix=".beat_detector.txt")
      # second line contains the results
      res = np.fromiter(res[1].split(",")[1:], dtype=float)
      self.assertTrue(
          np.allclose(
              res,
              [0.667, 0.5, 0.639, 1, 0, 0, 0.875, 0.875, 3.322, 3.322],
          )
      )
  
file_path: madmom/tests/test_bin_evaluate.py
imports: from __future__ import absolute_import, division, print_function
  import imp
  import os
  import sys
  import unittest
  import numpy
  from .None import ANNOTATIONS_PATH, DETECTIONS_PATH
  from madmom.evaluation.beats import BeatIntervalError
label_desc: Use image node_id 2 for calling the TestEvaluateScript obj's underlying member method code with example usage: obj.test_beats() without return types