code: def testWhiteNoise(self):
      # test with spectrum of ones
      bands = [
          0.0,
          50.0,
          100.0,
          150.0,
          200.0,
          300.0,
          400.0,
          510.0,
          630.0,
          770.0,
          920.0,
          1080.0,
          1270.0,
          1480.0,
          1720.0,
          2000.0,
          2320.0,
          2700.0,
          3150.0,
          3700.0,
          4400.0,
          5300.0,
          6400.0,
          7700.0,
          9500.0,
          12000.0,
          15500.0,
          20500.0,
          27000.0,
      ]
      sampleRate = 44100
      specSize = 2048
      spec = ones(specSize)
      frequencyScale = sampleRate * 0.5 / (specSize - 1)
      bins = [int(band / frequencyScale + 0.5) for band in bands]
      if bins[-1] > specSize:
          bins[-1] = specSize
      expected = [bins[i + 1] - bins[i] for i in range(len(bins) - 1)]
      bbands = BarkBands(sampleRate=sampleRate, numberBands=28)
      self.assertEqualVector(bbands(spec), expected)
  
imports: from essentia_test import *
label_desc: Use image node_id 2 for calling the TestBarkBands obj's underlying member method code with example usage: obj.testWhiteNoise() without return types