def _check_even_rewrite(func, arg):
 return (func(arg).args[0] == (- arg))

def _check_even_rewrite ( func , arg ) : return ( func ( arg ) . args [ 0 ] == ( - arg ) )
checks that the expr has been rewritten using f -> f(x) arg : -x .