code: def testBand(self):
      startCutoffFreq = 115.0
      stopCutoffFreq = 880.0
      size = 512
      sr = 44100
      startBin = int(startCutoffFreq * size / (0.5 * sr) + 0.5)
      stopBin = int(stopCutoffFreq * size / (0.5 * sr) + 0.5)
      result = sum(ones(stopBin - startBin + 1))
      self.assertEqual(
          EnergyBand(
              startCutoffFrequency=startCutoffFreq,
              stopCutoffFrequency=stopCutoffFreq,
          )(ones(size)),
          result,
      )
  
file_path: essentia/test/src/unittests/spectral/test_energyband.py
imports: from essentia_test import *
label_desc: Use image node_id 4 for calling the TestEnergyBand obj's underlying member method code with example usage: obj.testBand() without return types