code: def _param_memo(f, param):
      if isinstance(f, Command):
          f.params.append(param)
      else:
          if not hasattr(f, "__click_params__"):
              f.__click_params__ = []
          f.__click_params__.append(param)
  
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 7 for calling a global function with example usage: _param_memo(f, param) without return types