code: def testImpulse(self):
      # Given an impulse should return its position
      sampleRate = 44100
      frameSize = 2048
      hopSize = 256
      signal = zeros(sampleRate * 2)
      # impulses at 0:30 and 1:00
      signal[22050] = 1.0
      signal[44100] = 1.0
  
      expected = [0.5, 1.0]
  
      result = SuperFluxExtractor(
          sampleRate=sampleRate, frameSize=frameSize, hopSize=hopSize
      )(signal)
  
      # SuperfluxPeaks has a parameter 'combine' which is a threshold that
      # puts together consecutive peaks. This means that a peak will be
      # detected as soon as it is seen by a frame. Thus, the frame size
      # also influences the expected precision of the algorithm.
      precision = (hopSize + frameSize) / sampleRate
      self.assertAlmostEqualVectorAbs(result, expected, precision)
  
file_path: essentia/test/src/unittests/rhythm/test_superfluxextractor.py
imports: from essentia_test import *
  from essentia.standard import MonoLoader, SuperFluxExtractor
  from numpy import *
label_desc: Use image node_id 7 for calling the TestSuperFluxExtractor obj's underlying member method code with example usage: obj.testImpulse() without return types