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]])
    result = Slicer(startTimes = startTimes,
                    endTimes = endTimes,
                    timeUnits="samples")(input)
    self.assertEqual(len(result), len(expected))
    for i in range(nSlices):
        self.assertEqualVector(result[i], expected[i])