human
Complete the below
def access_log_level(lvl):

    ''''Decorator to set the access log level of a view function.'
    '''

Can you provide a the Python code you requested?
assistant
#Here is the Python code you requested.
    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