code: def testOneByOne(self):
      # we compare here that filtering an array all at once or the samples
      # one by one will yield the same result
  
      input = [1] * 10
      expected = [
          1.0 / 4,
          2.0 / 4,
          3.0 / 4,
          1.0,
          1.0,
          1.0,
          1.0,
          1.0,
          1.0,
          1.0,
      ]
      filt = MovingAverage(size=4)
  
      self.assertAlmostEqualVector(filt(input), expected)
  
      # need to reset the filter here!!
      filt.reset()
  
      result = []
      for sample in input:
          result += list(filt([sample]))
  
      self.assertAlmostEqualVector(result, expected)
  
file_path: essentia/test/src/unittests/filters/test_movingaverage.py
imports: from essentia_test import *
label_desc: Use image node_id 2 for calling the TestMovingAverage obj's underlying member method code with example usage: obj.testOneByOne() without return types