human
I wrote the below code

    @functools.wraps(fn)
    def wrapped(*args, **kwargs):
        orig_mode = config.mode
        if (orig_mode in ['DebugMode', 'DEBUG_MODE']):
            config.mode = 'FAST_RUN'
        try:
            return fn(*args, **kwargs)
        finally:
            config.mode = orig_mode
    return wrapped

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

def no_debug_mode(fn):