code: def _add_ui_arguments(parser):
      parser.add_argument(
          "--show-vega",
          action="store_true",
          default=False,
          help="Show output in Vega format.",
      )
      parser.add_argument(
          "--json",
          action="store_true",
          default=False,
          help=argparse.SUPPRESS,
      )
      parser.add_argument(
          "--split",
          action="store_true",
          default=False,
          help=argparse.SUPPRESS,
      )
      parser.add_argument(
          "--open",
          action="store_true",
          default=False,
          help="Open plot file directly in the browser.",
      )
      parser.add_argument(
          "--html-template",
          default=None,
          help="Custom HTML template for VEGA visualization.",
          metavar="<path>",
      )
  
imports: import argparse
  import os
  from typing import TYPE_CHECKING, Dict, List, Optional
  from funcy import compact, first, get_in
  from dvc.cli import completion, formatter
  from dvc.cli.command import CmdBase
  from dvc.cli.utils import append_doc_link
  from dvc.exceptions import DvcException
  from dvc.log import logger
  from dvc.ui import ui
  from dvc.utils import format_link
label_desc: Use image node_id 5 for calling a global function with example usage: _add_ui_arguments(parser) without return types