def METHOD_NAME(eqn):
    left, right = eqn.elements
    for le, ri in [(left, right), (right, left)]:
        if (
            left.get_head_name() == func.get_head_name()
            and len(left.elements) == 1  # noqa
            and isinstance(le.elements[0].to_python(), int)
            and ri.is_numeric(evaluation)
        ):
            r_sympy = ri.to_sympy()
            if r_sympy is None:
                raise ValueError
            conditions[le.elements[0].to_python()] = r_sympy
            return False
    return True