code: def test_onsets(self):
      res = run_script("onsets", det_suffix=".super_flux.txt")
      # second line contains the summed results
      sum_res = np.fromiter(res[1].split(",")[1:], dtype=float)
      self.assertTrue(
          np.allclose(
              sum_res, [14, 2, 0, 1, 15, 0.875, 0.933, 0.903, 0.824]
          )
      )
      # third line contains the mean results
      mean_res = np.fromiter(res[2].split(",")[1:], dtype=float)
      self.assertTrue(np.allclose(mean_res, sum_res))
  
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 1 for calling the TestEvaluateScript obj's underlying member method code with example usage: obj.test_onsets() without return types