def is_decorated_with_attrs(
        node, decorator_names=('attr.s', 'attr.attrs', 'attr.attributes')):
    """Return True if a decorated node has
    an attr decorator applied."""
    if not node.decorators:
        return False
    for decorator_attribute in node.decorators.nodes:
        if decorator_attribute.as_string() in decorator_names:
            return True
    return False