code: def add_parser(subparsers, parent_parser):
      INSTALL_HELP = "Install DVC git hooks into the repository."
      install_parser = subparsers.add_parser(
          "install",
          parents=[parent_parser],
          description=append_doc_link(INSTALL_HELP, "install"),
          help=INSTALL_HELP,
          formatter_class=formatter.RawDescriptionHelpFormatter,
      )
      install_parser.add_argument(
          "--use-pre-commit-tool",
          action="store_true",
          default=False,
          help=(
              "Install DVC hooks using pre-commit "
              "(https://pre-commit.com) if it is installed."
          ),
      )
      install_parser.set_defaults(func=CmdInstall)
  
file_path: dvc/dvc/commands/install.py
imports: from dvc.cli import 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
label_desc: Use image node_id 1 for calling a global function with example usage: add_parser(subparsers, parent_parser) without return types