from typing import List
from typing import Any


def chunked(dataset: List[Any], window: int):
    """Return a list comprising of dataset
    broken down into down into sizes of
    length window.
    """
    chunks = []
    for i in range(0, len(dataset), window):
        chunks.append(dataset[i:i + window])
    return chunks