human
Complete the below
def allow_interpreter_mode(fn):

    ''''Temporarily re-enable intepreter mode'
    '''

=====
Can you provide a the Python code you requested?
assistant
#Here is the Python code you requested.
    @functools.wraps(fn)
    def _core(*args, **kws):
        config.COMPATIBILITY_MODE = True
        try:
            fn(*args, **kws)
        finally:
            config.COMPATIBILITY_MODE = False
    return _core