def _check_callable_comparison(self, node):
    operator = node.ops[0][0]
    if (operator not in COMPARISON_OPERATORS):
        return
    bare_callables = (astroid.FunctionDef, astroid.BoundMethod)
    (left_operand, right_operand) = (node.left, node.ops[0][1])
    if (sum((1 for operand in (left_operand, right_operand) if isinstance(utils.safe_infer(operand), bare_callables))) == 1):
        self.add_message('comparison-with-callable', node=node)
def _check_callable_comparison(self, node):
    operator = node.ops[0][0]
    if (operator not in COMPARISON_OPERATORS):
        return
    bare_callables = (astroid.FunctionDef, astroid.BoundMethod)
    (left_operand, right_operand) = (node.left, node.ops[0][1])
    if (sum((1 for operand in (left_operand, right_operand) if isinstance(utils.safe_infer(operand), bare_callables))) == 1):
        self.add_message('comparison-with-callable', node=node)