def METHOD_NAME(left, right, comparator):
    yield makeStatementAssignmentVariable(
        variable=tmp_variable,
        source=_makeComparisonNode(
            left=left, right=right, comparator=comparator, source_ref=source_ref
        ),
        source_ref=source_ref,
    )
    yield makeStatementConditional(
        condition=ExpressionOperationNot(
            operand=ExpressionTempVariableRef(
                variable=tmp_variable, source_ref=source_ref
            ),
            source_ref=source_ref,
        ),
        yes_branch=StatementReturn(
            expression=ExpressionTempVariableRef(
                variable=tmp_variable, source_ref=source_ref
            ),
            source_ref=source_ref,
        ),
        no_branch=None,
        source_ref=source_ref,
    )