code: def tag_params(fn):
      click_util.append_params(
          fn,
          [
              runs_support.runs_arg,
              click.Option(
                  ("-a", "--add"),
                  metavar="TAG",
                  help="Associate TAG with specified runs. May be used multiple times.",
                  multiple=True,
              ),
              click.Option(
                  ("-d", "--delete"),
                  metavar="TAG",
                  help="Delete TAG from specified runs. May be used multiple times.",
                  multiple=True,
                  shell_complete=_ac_tag,
              ),
              click.Option(
                  ("-c", "--clear"),
                  help="Clear all tags associated with specified runs.",
                  is_flag=True,
              ),
              click.Option(
                  ("-s", "--sync-labels"),
                  help=(
                      "Update run label by adding and deleting corresponding tag parts."
                  ),
                  is_flag=True,
              ),
              click.Option(
                  ("--list-all",),
                  help="List all tags used for the specified runs.",
                  is_flag=True,
              ),
              runs_support.all_filters,
              remote_support.remote_option("Tag remote runs."),
              click.Option(
                  ("-y", "--yes"),
                  help="Do not prompt before modifying tags.",
                  is_flag=True,
              ),
          ],
      )
      return fn
  
imports: import click
  from guild import click_util
  from .None import remote_support
  from .None import runs_support
label_desc: Use image node_id 3 for calling a global function with example usage: tag_params(fn) and returns: fn