def paginate(items, items_per_page):
    """Splits `items` list into lists of size `items_per_page`.

    >>> paginate([1, 2, 3], 1)
    [[1], [2], [3]]

    >>> paginate([1, 2, 3, 4, 5, 6, 7], 3)
    [[1, 2, 3], [4, 5, 6], [7]]

    >>> paginate([], 3)
    []
    """
    result = []
    for i in range(0, len(items), items_per_page):
        result.append(items[i:i + items_per_page])
    return result