def METHOD_NAME(data: List[int]) -> List[Tuple[int, int, int]]:
    """
    Convert a linear list into a triplet list
    :param data: List formatted as [0, 1, 2 ... N, N+1, N+2]
    :return: Nested list formatted as [[0, 1, 2] ... [N, N+1, N+2]]
    """
    assert(len(data) % 3 == 0)
    length = len(data) // 3
    data_triplets = []
    for i in range(length):
        data_triplets.append((data[3 * i + 0], data[3 * i + 1], data[3 * i + 2]))
    return data_triplets