<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def trim(sequences, start, end):
 """ Slice the input sequences from start to end """

    logging.info("Trimming from %d to %d", start, end)
    return (sequence[start:end] for sequence in sequences)