code: def assertResults(
      self, input, expected, factor, epsilon=1e-5, quality=0
  ):
      result = self.resample(input, factor, quality=quality)
      self.assertEqual(len(result), len(expected))
      self.assertAlmostEqual(
          sum(result[200:]), sum(expected[200:]), epsilon
      )
  
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 2 for calling the TestResample_Streaming obj's underlying member method code with example usage: obj.assertResults(input, expected, factor, epsilon, quality) without return types