pub fn create_session_if_not_set_then<R, F>(edition: Edition, f: F) -> R where
    F: FnOnce(&SessionGlobals) -> R,