human
I wrote the below code

    @click.pass_context
    def decorator(__ctx, *args, **kwargs):
        with __ctx.ensure_object(ScriptInfo).load_app().app_context():
            return __ctx.invoke(f, *args, **kwargs)
    return update_wrapper(decorator, f)

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def with_appcontext(f):