def chunk_data(data, size):
    """Creates a list of chunks of the specified `size`.

    Args:
        data (list): self-explanatory.
        size (int): desired size of each chunk, the last one can be <= `size`.

    Returns:
        coll (list): lists of lists.
    """
    coll = []
    start_indx = 0
    while start_indx < len(data):
        slice_range = range(start_indx, min(start_indx + size, len(data)))
        chunk = [data[i] for i in slice_range]
        coll.append(chunk)
        start_indx += size
    return coll