code: def resample(self, input, factor, quality=0):
      if input:
          sr = len(input)
      else:
          sr = 44100
      resample = Resample(
          inputSampleRate=sr,
          outputSampleRate=int(factor * sr),
          quality=quality,
      )
      pool = Pool()
      gen = VectorInput(input)
      gen.data >> resample.signal
      resample.signal >> (pool, "signal")
      run(gen)
      if not pool.descriptorNames():
          return []
      return pool["signal"]
  
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 1 for calling the TestResample_Streaming obj's underlying member method code with example usage: obj.resample(input, factor, quality) and returns: pool, list