code: def with_context_env(f):
      """Pops the Fiona Env from the passed context and executes the
      wrapped func in the context of that obj.
  
      Click's pass_context decorator must precede this decorator, or else
      there will be no context in the wrapper args.
      """
  
      @wraps(f)
      def wrapper(*args, **kwds):
          ctx = args[0]
          env = ctx.obj.pop("env")
          with env:
              return f(*args, **kwds)
  
      return wrapper
  
label_desc: Use image node_id 1 for calling a global function with example usage: with_context_env(f) and returns: wrapper, f