def METHOD_NAME(engine: str, storage_format: str):
    old_engine, old_storage = set_execution(engine, storage_format)
    try:
        yield
    finally:
        set_execution(old_engine, old_storage)