code: def archive_params(fn):
      click_util.append_params(
          fn,
          [
              click.Argument(
                  ("name",),
                  shell_complete=runs_support.ac_named_archive,
                  required=False,
              ),
              runs_support.runs_arg,
              click.Option(
                  ("-c", "--create"),
                  help="Create a new archive if NAME doesn't exist.",
                  is_flag=True,
              ),
              click.Option(
                  ("-l", "--list"),
                  help="List archives.",
                  is_flag=True,
              ),
              click.Option(
                  ("-c", "--copy"),
                  help="Copy archived runs rather than move.",
                  is_flag=True,
              ),
              click.Option(
                  ("-r", "--copy-resources"),
                  help="Copy resources for each exported run.",
                  is_flag=True,
              ),
              click.Option(
                  ("-d", "--description"),
                  help="Description used for archive when creating.",
              ),
              click.Option(
                  ("-v", "--verbose"),
                  help="Show more information when listing archives.",
                  is_flag=True,
              ),
              runs_support.all_filters,
              click.Option(
                  ("-y", "--yes"),
                  help="Do not prompt before archiving.",
                  is_flag=True,
              ),
          ],
      )
      return fn
  
imports: import click
  from guild import click_util
  from .None import runs_support
label_desc: Use image node_id 1 for calling a global function with example usage: archive_params(fn) and returns: fn