def redefined_by_decorator(node):
    'return True if the object is a method redefined via decorator.\n\n    For example:\n        @property\n        def x(self): return self._x\n        @x.setter\n        def x(self, value): self._x = value\n    '
    if node.decorators:
        for decorator in node.decorators.nodes:
            if (isinstance(decorator, astroid.Attribute) and (getattr(decorator.expr, 'name', None) == node.name)):
                return True
    return False
return True if the object is a method redefined via decorator.

For example:
    @property
    def x(self): return self._x
    @x.setter
    def x(self, value): self._x = value
def redefined_by_decorator(node):
    'return True if the object is a method redefined via decorator.\n\n    For example:\n        @property\n        def x(self): return self._x\n        @x.setter\n        def x(self, value): self._x = value\n    '
    if node.decorators:
        for decorator in node.decorators.nodes:
            if (isinstance(decorator, astroid.Attribute) and (getattr(decorator.expr, 'name', None) == node.name)):
                return True
    return False