from typing import List


def split(sequence: List, chunk) -> List[List]:
    """Split sequence into equal segments of the given length."""
    return [sequence[i * chunk : (i + 1) * chunk] for i in range(chunk)]