code: def comment_params(fn):
      click_util.append_params(
          fn,
          [
              runs_support.runs_arg,
              click.Option(
                  ("-l", "--list"),
                  help="List comments for specified runs.",
                  is_flag=True,
              ),
              click.Option(
                  ("-a", "--add"),
                  metavar="COMMENT",
                  help="Add comment to specified runs.",
              ),
              click.Option(
                  ("-e", "--edit"),
                  help=(
                      "Use an editor to type a comment. Enabled by default if "
                      "COMMENT is not specified using --add."
                  ),
                  is_flag=True,
              ),
              click.Option(
                  ("-d", "--delete"),
                  metavar="INDEX",
                  help=(
                      "Delete comment at INDEX from specified runs. Use `--list` "
                      "to show available indexes."
                  ),
                  type=click.INT,
                  shell_complete=_ac_comment_index,
              ),
              click.Option(
                  ("-c", "--clear"),
                  help="Clear all comments associated with specified runs.",
                  is_flag=True,
              ),
              click.Option(
                  ("-u", "--user"),
                  metavar="USER",
                  help=(
                      "User associated with new comments. May include host "
                      "as USER@HOST. By default the current user is used."
                  ),
              ),
              runs_support.all_filters,
              remote_support.remote_option(
                  "Apply comments to remote runs."
              ),
              click.Option(
                  ("-y", "--yes"),
                  help="Do not prompt before modifying comments.",
                  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 2 for calling a global function with example usage: comment_params(fn) and returns: fn