def METHOD_NAME(self, startTimes, endTimes):
    nSlices = len(startTimes)
    if nSlices != len(endTimes):
        print("Test cannot be computed")
        exit(1)
    input = list(range(max(endTimes)))
    # expected values:
    expected = []
    orderedTimes = []
    for i in range(nSlices):
        time = (startTimes[i], endTimes[i])
        orderedTimes.append(time)
    orderedTimes = sorted(orderedTimes, key=lambda x: x[0])
    for i in range(nSlices):
        expected.append(input[orderedTimes[i][0]:orderedTimes[i][1]])
    gen = VectorInput(input)
    slicer = Slicer(startTimes=startTimes,
                    endTimes=endTimes,
                    timeUnits="samples")
    pool = Pool()
    gen.data >> slicer.audio
    slicer.frame >> (pool, "data")
    run(gen)
    result = pool['data']
    self.assertEqual(len(result), len(expected))
    for i in range(nSlices):
        self.assertEqualVector(result[i], expected[i])