from typing import List
import itertools


def split_items(items: List, sizes: List[int]) -> List:
    """Split the items into a list each with length as specified in
    sizes

    len(split_items) = len(sizes)
    len(split_items[i]) = sizes[i]

    Args:
        items (List): Flat list of items to be split
        sizes (List[int]): Sizes of elements in the split list

    Returns:
        List: Split list
    """
    it = iter(items)
    return [list(itertools.islice(it, 0, size)) for size in sizes]