code: def pass_obj(f):
      """Similar to :func:`pass_context`, but only pass the object on the
      context onwards (:attr:`Context.obj`).  This is useful if that object
      represents the state of a nested system.
      """
  
      def new_func(*args, **kwargs):
          return f(get_current_context().obj, *args, **kwargs)
  
      return update_wrapper(new_func, f)
  
imports: import inspect
  import sys
  from functools import update_wrapper
  from ._compat import iteritems
  from ._unicodefun import _check_for_unicode_literals
  from .core import Argument
  from .core import Command
  from .core import Group
  from .core import Option
  from .globals import get_current_context
  from .utils import echo
label_desc: Use image node_id 2 for calling a global function with example usage: pass_obj(f) and returns: update_wrapper, f