def n_gons(partial: List[int], size: int, sums: int=None) -> Generator[(List[int], None, None)]:
    length = len(partial)
    if (length == (size * 2)):
        (yield partial)
    for i in range(1, ((size * 2) + 1)):
        if (i in partial):
            continue
        partial.append(i)
        if (length == 2):
            sums = sum(partial[0:3])
        elif (((length > 2) and ((length % 2) == 0) and (sums != sum(partial[(- 1):(- 4):(- 1)]))) or ((length == ((size * 2) - 1)) and (sums != ((partial[1] + partial[(- 1)]) + partial[(- 2)])))):
            partial.pop()
            continue
        (yield from n_gons(list(partial), size, sums))
        partial.pop()
def n_gons(partial: List[int], size: int, sums: int=None) -> Generator[(List[int], None, None)]:
    length = len(partial)
    if (length == (size * 2)):
        (yield partial)
    for i in range(1, ((size * 2) + 1)):
        if (i in partial):
            continue
        partial.append(i)
        if (length == 2):
            sums = sum(partial[0:3])
        elif (((length > 2) and ((length % 2) == 0) and (sums != sum(partial[(- 1):(- 4):(- 1)]))) or ((length == ((size * 2) - 1)) and (sums != ((partial[1] + partial[(- 1)]) + partial[(- 2)])))):
            partial.pop()
            continue
        (yield from n_gons(list(partial), size, sums))
        partial.pop()