human
Complete this python program:
def access_log_level(lvl):
assistant
#Here is the Python code you requested.

    """Decorator to set the access log level of a view function.
    """
    if (lvl not in (logging.DEBUG, logging.WARN, logging.ERROR, logging.CRITICAL, logging.FATAL)):
        raise ValueError(('%s    is    not    a    valid    logging    level' % (lvl,)))
    def deco_view(func):
        func.access_log_level = lvl
        return func
    return deco_view