Generate a Python function that takes two integer arguments and returns the greatest of them.
def greatest_of_two_integers(x, y):
    if x > y:
        return x
    elif y > x:
        return y
    else:
        return x