code: def testRegression(self):
      audio = MonoLoader(
          filename=join(
              testdata.audio_dir, "recorded", "techno_loop.wav"
          )
      )()
  
      onsetdetectionglobal_infogain = stdOnsetDetectionGlobal(
          method="infogain"
      )
      onsetdetectionglobal_beat_emphasis = stdOnsetDetectionGlobal(
          method="beat_emphasis"
      )
      calculated_beat_emphasis = onsetdetectionglobal_infogain(
          audio
      ).tolist()
      calculated_infogain = onsetdetectionglobal_beat_emphasis(
          audio
      ).tolist()
  
      """
          This code stores reference values in a file for later loading.
          save('input_infogain.npy', calculated_beat_emphasis)
          save('input_beat_emphasis.npy', calculated_infogain)             
          """
  
      # Reference samples are loaded as expected values
      onsetdetectionglobal_infogain = load(
          join(filedir(), "onsetdetectionglobal/infogain.npy")
      )
      onsetdetectionglobal_beat_emphasis = load(
          join(filedir(), "onsetdetectionglobal/beat_emphasis.npy")
      )
      expected_infogain = onsetdetectionglobal_infogain.tolist()
      expected_beat_emphasis = (
          onsetdetectionglobal_beat_emphasis.tolist()
      )
  
      self.assertAlmostEqualVectorFixedPrecision(
          calculated_beat_emphasis, expected_beat_emphasis, 2
      )
      self.assertAlmostEqualVectorFixedPrecision(
          calculated_infogain, expected_infogain, 2
      )
  
file_path: essentia/test/src/unittests/rhythm/test_onsetdetectionglobal.py
imports: from numpy import *
  from essentia_test import *
  from essentia.standard import MonoLoader, OnsetDetectionGlobal
label_desc: Use image node_id 3 for calling the TestOnsetDetectionGlobal obj's underlying member method code with example usage: obj.testRegression() without return types