def _create_chunks_from_list(lst, n):
    """Creates chunks of list.

    Args:
        lst: list of elements.
        n: size of chunk.

    """
    chunks = []
    for i in range(0, len(lst), n):
        chunks.append(lst[i:i + n])
    return chunks