code: def testRegression(self, tempotapticks=None):
      # to match with test_tempotap.py
      numberFrames = 1024
      hopSize = 256
  
      if not tempotapticks:
          tempotapticks = TempoTapTicks(
              frameHop=numberFrames, hopSize=hopSize
          )
      ticks = []
      matching_periods = []
      for i in range(numberFrames * 5):
          periods = []
          phases = []
          if i % numberFrames == numberFrames - 1:
              # read output from tempotap, which will be produced after numberFrames
              # frames:
              periods, phases = readMatrix(
                  join(filedir(), "tempotap", "output.txt")
              )
  
          # ticks, matching_periods = tempotapticks(periods, phases)
          tmp = tempotapticks(periods, phases)
          ticks += list(tmp[0])
          matching_periods += list(tmp[1])
  
      self.assertEquals(True, len(ticks) > 0)
      # make sure that time is not negative
      self.assert_(all(array(ticks)) >= 0)
      # make sure there is at least one matching period
      self.assertEquals(True, len(matching_periods) > 0)
  
file_path: essentia/test/src/unittests/rhythm/test_tempotapticks.py
imports: from essentia_test import *
  import math
label_desc: Use image node_id 2 for calling the TestTempoTapTicks obj's underlying member method code with example usage: obj.testRegression(tempotapticks) without return types