@staticmethod
def neighbors(pixel: tuple[(int, int)]) -> list[tuple[(int, int)]]:
    x = pixel[0]
    y = pixel[1]
    return [((x - 1), (y - 1)), (x, (y - 1)), ((x + 1), (y - 1)), ((x - 1), y), (x, y), ((x + 1), y), ((x - 1), (y + 1)), (x, (y + 1)), ((x + 1), (y + 1))]
@staticmethod
def neighbors(pixel: tuple[(int, int)]) -> list[tuple[(int, int)]]:
    x = pixel[0]
    y = pixel[1]
    return [((x - 1), (y - 1)), (x, (y - 1)), ((x + 1), (y - 1)), ((x - 1), y), (x, y), ((x + 1), y), ((x - 1), (y + 1)), (x, (y + 1)), ((x + 1), (y + 1))]