def is_decorated_with_attrs(node, decorator_names=ATTRS_NAMES):
if not node.decorators:<EOL><INDENT>return False<EOL><DEDENT>for decorator_attribute in node.decorators.nodes:<EOL><INDENT>if isinstance(decorator_attribute, astroid.Call):  <EOL><INDENT>decorator_attribute = decorator_attribute.func<EOL><DEDENT>if decorator_attribute.as_string() in decorator_names:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Return True if a decorated node has
    an attr decorator applied.