def is_attrs_object(element):
    """Returns `True` for instances of `attr`-decorated classes."""
    return (hasattr(element, '__class__')
            and hasattr(element.__class__, '__attrs_attrs__'))