def _check_misplaced_constant(self, node, left, right, operator):
    if isinstance(right, astroid.Const):
        return
    operator = REVERSED_COMPS.get(operator, operator)
    suggestion = f'{right.as_string()} {operator} {left.value!r}'
    self.add_message('misplaced-comparison-constant', node=node, args=(suggestion,))
def _check_misplaced_constant(self, node, left, right, operator):
    if isinstance(right, astroid.Const):
        return
    operator = REVERSED_COMPS.get(operator, operator)
    suggestion = f'{right.as_string()} {operator} {left.value!r}'
    self.add_message('misplaced-comparison-constant', node=node, args=(suggestion,))