code: def slice(self, start, end, sr):
      size = 100 * sr
      input = [[i, i] for i in range(size)]
      startIdx = int(start * sr)
      stopIdx = int(end * sr)
      if stopIdx > size:
          stopIdx = size
      expected = range(startIdx, stopIdx)
      expected = list(zip(expected, expected))
      gen = VectorInput(input)
      pool = Pool()
      trim = StereoTrimmer(startTime=start, endTime=end, sampleRate=sr)
  
      gen.data >> trim.signal
      trim.signal >> (pool, "slice")
      run(gen)
      if end != start:
          self.assertEqualMatrix(pool["slice"], expected)
      else:
          self.assertEqualMatrix(pool.descriptorNames(), [])
  
file_path: essentia/test/src/unittests/standard/test_stereotrimmer_streaming.py
imports: from essentia_test import *
  from essentia.streaming import AudioLoader, VectorInput, StereoTrimmer
label_desc: Use image node_id 1 for calling the TestStereoTrimmer_Streaming obj's underlying member method code with example usage: obj.slice(start, end, sr) without return types