code: def testLinear(self):
      sr = 44100
      factor = 4
      input = [1, 0] * int(sr / 2)
      expected = [1, 0.75, 0.5, 0.25, 0.0, 0.25, 0.5, 0.75] * int(
          sr / 2
      )
      self.assertResults(input, expected, factor, quality=4)
  
file_path: essentia/test/src/unittests/standard/test_resample_streaming.py
imports: from essentia_test import *
  from essentia.streaming import *
label_desc: Use image node_id 11 for calling the TestResample_Streaming obj's underlying member method code with example usage: obj.testLinear() without return types