code: def pass_context(f):
      """Marks a callback as wanting to receive the current context
      object as first argument.
      """
  
      def new_func(*args, **kwargs):
          return f(get_current_context(), *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 1 for calling a global function with example usage: pass_context(f) and returns: update_wrapper, f