code: def diff_params(fn):
      click_util.append_params(
          fn,
          [
              click.Argument(
                  ("run",),
                  metavar="[RUN [RUN]]",
                  required=False,
                  shell_complete=runs_support.ac_run,
              ),
              click.Argument(
                  ("other_run",),
                  metavar="",
                  required=False,
                  shell_complete=runs_support.ac_run,
              ),
              click.Option(
                  ("-O", "--output"),
                  is_flag=True,
                  help="Diff run output.",
              ),
              click.Option(
                  ("-s", "--sourcecode"),
                  is_flag=True,
                  help="Diff run source code.",
              ),
              click.Option(
                  ("-e", "--env"),
                  is_flag=True,
                  help="Diff run environment.",
              ),
              click.Option(
                  ("-f", "--flags"),
                  is_flag=True,
                  help="Diff run flags.",
              ),
              click.Option(
                  ("-a", "--attrs"),
                  is_flag=True,
                  help=(
                      "Diff all run attributes; if specified other "
                      "attribute options are ignored."
                  ),
              ),
              click.Option(
                  ("-D", "--deps"),
                  is_flag=True,
                  help="Diff run dependencies.",
              ),
              click.Option(
                  ("-p", "--path", "paths"),
                  metavar="PATH",
                  multiple=True,
                  help="Diff specified path. May be used more than once.",
                  shell_complete=_ac_path,
              ),
              click.Option(
                  ("-w", "--working"),
                  is_flag=True,
                  help="Diff run sourcecode to the associated working directory.",
              ),
              click.Option(
                  ("-d", "--dir"),
                  metavar="PATH",
                  help="Diff run to the specified directory, relative to cwd.",
                  shell_complete=_ac_dir,
              ),
              click.Option(
                  ("-c", "--cmd"),
                  metavar="CMD",
                  help="Command used to diff runs.",
                  shell_complete=_ac_cmd,
              ),
              runs_support.all_filters,
              remote_support.remote_option("Diff remote runs."),
          ],
      )
      return fn
  
file_path: guildai/guild/commands/runs_diff.py
imports: import os
  import click
  from guild import click_util
  from .None import ac_support
  from .None import remote_support
  from .None import runs_support
label_desc: Use image node_id 9 for calling a global function with example usage: diff_params(fn) and returns: fn