code: def run(self):
      from dvc.repo.experiments.show import tabulate
  
      try:
          exps = self.repo.experiments.show(
              all_branches=self.args.all_branches,
              all_tags=self.args.all_tags,
              all_commits=self.args.all_commits,
              hide_queued=self.args.hide_queued,
              hide_failed=self.args.hide_failed,
              revs=self.args.rev,
              num=self.args.num,
              sha_only=self.args.sha,
              param_deps=self.args.param_deps,
              fetch_running=self.args.fetch_running,
              force=self.args.force,
          )
      except DvcException:
          logger.exception("failed to show experiments")
          return 1
  
      if self.args.json:
          ui.write_json(
              [exp.dumpd() for exp in exps], default=_format_json
          )
      else:
          precision = (
              self.args.precision or None
              if self.args.csv
              else DEFAULT_PRECISION
          )
          fill_value = "" if self.args.csv else FILL_VALUE
          iso = self.args.csv
          td, headers = tabulate(
              exps,
              precision=precision,
              fill_value=fill_value,
              iso=iso,
              sort_by=self.args.sort_by,
              sort_order=self.args.sort_order,
          )
  
          show_experiments(
              td,
              headers,
              keep=self.args.keep,
              drop=self.args.drop,
              sort_by=self.args.sort_by,
              sort_order=self.args.sort_order,
              pager=not self.args.no_pager,
              csv=self.args.csv,
              markdown=self.args.markdown,
              only_changed=self.args.only_changed,
          )
      return 0
  
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 1 for calling the CmdExperimentsShow obj's underlying member method code with example usage: obj.run() and returns: int, int