code: def _add_output_argument(parser, typ="plots"):
      parser.add_argument(
          "-o",
          "--out",
          default=None,
          help=f"Directory to save {typ} to.",
          metavar="<path>",
      ).complete = completion.DIR
  
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 4 for calling a global function with example usage: _add_output_argument(parser, typ) without return types