code: def test_chords(self):
      res = run_script("chords")
      # second line contains the weighted mean results
      weighted = np.fromiter(res[1].split(",")[1:], dtype=float)
      self.assertTrue(
          np.allclose(
              weighted,
              [0.897, 0.641, 0.462, 0.462, 0.282, 0.590, 0.590, 0.923],
          )
      )
      # third line contains the piecewise mean results
      piecewise = np.fromiter(res[2].split(",")[1:], dtype=float)
      self.assertTrue(np.allclose(weighted, piecewise))
  
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 4 for calling the TestEvaluateScript obj's underlying member method code with example usage: obj.test_chords() without return types