def find_if_expression_as_statement ( node ) : return ( isinstance ( node , ast . Expr ) and isinstance ( node . value , ast . IfExp ) )
is node defined in python
Finds an if expression as a statement
def find_if_expression_as_statement(node):
    """Finds an "if" expression as a statement"""
    return (
        isinstance(node, ast.Expr)
        and isinstance(node.value, ast.IfExp)
    )