Utility to execute a function bound to a Session instance context.
O runWithSession<O>(Session session, O Function() fn) => session.run(fn);