Overview
run_session creates a new session with the given init params, runs your function within that context, and then ends the session after the function returns.
Syntax
Parameters
fn(callable, required): Function to execute within the session.init_params(dict, optional): Parameters to pass toinit/session(e.g.,session_name,providers).*args,**kwargs: Arguments forwarded tofn.
Returns
Returns whateverfn returns.