code: def append_params(fn, params):
      fn.__click_params__ = getattr(fn, "__click_params__", [])
      for param in reversed(params):
          if callable(param):
              param(fn)
          else:
              fn.__click_params__.append(param)
  
imports: import contextlib
  import functools
  import json
  import os
  import re
  import click
  from click import shell_completion
  import guild
  from guild import python_util
label_desc: Use image node_id 5 for calling a global function with example usage: append_params(fn, params) without return types