code: def add_parser(experiments_subparsers, parent_parser):
      from . import add_rev_selection_flags
  
      EXPERIMENTS_SHOW_HELP = "Print experiments."
      experiments_show_parser = experiments_subparsers.add_parser(
          "show",
          parents=[parent_parser],
          description=append_doc_link(
              EXPERIMENTS_SHOW_HELP, "exp/show"
          ),
          help=EXPERIMENTS_SHOW_HELP,
          formatter_class=formatter.RawDescriptionHelpFormatter,
      )
      add_rev_selection_flags(experiments_show_parser, "Show")
      experiments_show_parser.add_argument(
          "-a",
          "--all-branches",
          action="store_true",
          default=False,
          help="Show experiments derived from the tip of all Git branches.",
      )
      experiments_show_parser.add_argument(
          "-T",
          "--all-tags",
          action="store_true",
          default=False,
          help="Show experiments derived from all Git tags.",
      )
      experiments_show_parser.add_argument(
          "--no-pager",
          action="store_true",
          default=False,
          help="Do not pipe output into a pager.",
      )
      experiments_show_parser.add_argument(
          "--only-changed",
          action="store_true",
          default=False,
          help=(
              "Only show metrics/params with values varying "
              "across the selected experiments."
          ),
      )
      experiments_show_parser.add_argument(
          "--drop",
          help="Remove the columns matching the specified regex pattern.",
          metavar="<regex_pattern>",
      )
      experiments_show_parser.add_argument(
          "--keep",
          help="Preserve the columns matching the specified regex pattern.",
          metavar="<regex_pattern>",
      )
      experiments_show_parser.add_argument(
          "--param-deps",
          action="store_true",
          default=False,
          help="Show only params that are stage dependencies.",
      )
      experiments_show_parser.add_argument(
          "--sort-by",
          help="Sort related experiments by the specified metric or param.",
          metavar="<metric/param>",
      )
      experiments_show_parser.add_argument(
          "--sort-order",
          help="Sort order to use with --sort-by. Defaults to ascending ('asc').",
          choices=("asc", "desc"),
          default="asc",
      )
      experiments_show_parser.add_argument(
          "--sha",
          action="store_true",
          default=False,
          help="Always show git commit SHAs instead of branch/tag names.",
      )
      experiments_show_parser.add_argument(
          "--hide-failed",
          action="store_true",
          default=False,
          help="Hide failed experiments in the table.",
      )
      experiments_show_parser.add_argument(
          "--hide-queued",
          action="store_true",
          default=False,
          help="Hide queued experiments in the table.",
      )
      experiments_show_parser.add_argument(
          "--json",
          action="store_true",
          default=False,
          help="Print output in JSON format instead of a human-readable table.",
      )
      experiments_show_parser.add_argument(
          "--csv",
          action="store_true",
          default=False,
          help="Print output in csv format instead of a human-readable table.",
      )
      experiments_show_parser.add_argument(
          "--md",
          action="store_true",
          default=False,
          dest="markdown",
          help="Show tabulated output in the Markdown format (GFM).",
      )
      experiments_show_parser.add_argument(
          "--precision",
          type=int,
          help=(
              "Round metrics/params to `n` digits precision after the decimal "
              f"point. Rounds to {DEFAULT_PRECISION} digits by default."
          ),
          metavar="<n>",
      )
      experiments_show_parser.add_argument(
          "--no-fetch",
          dest="fetch_running",
          action="store_false",
          help=argparse.SUPPRESS,
      )
      experiments_show_parser.add_argument(
          "-f",
          "--force",
          action="store_true",
          help="Force re-collection of experiments instead of loading from exp cache.",
      )
      experiments_show_parser.set_defaults(func=CmdExperimentsShow)
  
imports: import argparse
  import re
  from datetime import date, datetime
  from typing import TYPE_CHECKING, Dict, Iterable
  from funcy import lmap
  from dvc.cli import formatter
  from dvc.cli.command import CmdBase
  from dvc.cli.utils import append_doc_link
  from dvc.commands.metrics import DEFAULT_PRECISION
  from dvc.exceptions import DvcException
  from dvc.log import logger
  from dvc.ui import ui
  from dvc.utils.serialize import encode_exception
label_desc: Use image node_id 6 for calling a global function with example usage: add_parser(experiments_subparsers, parent_parser) without return types