pub fn create_default_session_globals_then<R>(f: impl FnOnce() -> R) -> R