code: def password_option(*param_decls, **attrs):
      """Shortcut for password prompts.
  
      This is equivalent to decorating a function with :func:`option` with
      the following parameters::
  
          @click.command()
          @click.option('--password', prompt=True, confirmation_prompt=True,
                        hide_input=True)
          def changeadmin(password):
              pass
      """
  
      def decorator(f):
          attrs.setdefault("prompt", True)
          attrs.setdefault("confirmation_prompt", True)
          attrs.setdefault("hide_input", True)
          return option(*(param_decls or ("--password",)), **attrs)(f)
  
      return decorator
  
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 11 for calling a global function with example usage: password_option() and returns: decorator, option