def slice_sequence_examples(sequence, num_steps, step_size=1):
    """ Slices a sequence into examples of length num_steps with step size step_size."""
    xs = []
    for i in range((len(sequence) - num_steps) // step_size + 1):
        example = sequence[(i * step_size): (i * step_size) + num_steps]
        xs.append(example)
    return xs