def chunk_list(items, size):
    """
    Return a list of chunks
    :param items: List
    :param size: int The number of items per chunk
    :return: List
    """
    size = max(1, size)
    return [items[i:i + size] for i in range(0, len(items), size)]
def chunk_list ( items , size ) : size = max ( 1 , size ) return [ items [ i : i + size ] for i in range ( 0 , len ( items ) , size ) ]
Return a list of chunks
    :param items: List
    :param size: int The number of items per chunk
    :return: List