def add_attributes(**attributes):
    """This decorator adds specified attributes to a function"""
    def decorator(func):
        for key, value in attributes.items():
            setattr(func, key, value)
        return func
    return decorator