code: def add_parser(subparsers, parent_parser):
      """Setup parser for `dvc init`."""
      INIT_HELP = "Initialize DVC in the current directory."
      INIT_DESCRIPTION = (
          "Initialize DVC in the current directory. Expects directory\n"
          "to be a Git repository unless --no-scm option is specified."
      )
  
      init_parser = subparsers.add_parser(
          "init",
          parents=[parent_parser],
          description=append_doc_link(INIT_DESCRIPTION, "init"),
          help=INIT_HELP,
          formatter_class=formatter.RawDescriptionHelpFormatter,
      )
      init_parser.add_argument(
          "--no-scm",
          action="store_true",
          default=False,
          help=(
              "Initiate DVC in directory that is not tracked by any SCM tool (e.g. Git)."
          ),
      )
      init_parser.add_argument(
          "-f",
          "--force",
          action="store_true",
          default=False,
          help=(
              "Overwrite existing '.dvc/' directory. This operation removes local cache."
          ),
      )
      init_parser.add_argument(
          "--subdir",
          action="store_true",
          default=False,
          help=(
              "Necessary for running this command inside a subdirectory of a "
              "parent SCM repository."
          ),
      )
      init_parser.set_defaults(func=CmdInit)
  
file_path: dvc/dvc/commands/init.py
imports: import colorama
  from dvc import analytics
  from dvc.cli import formatter
  from dvc.cli.command import CmdBaseNoRepo
  from dvc.cli.utils import append_doc_link
  from dvc.log import logger
  from dvc.utils import boxify
  from dvc.utils import format_link
label_desc: Use image node_id 2 for calling a global function with example usage: add_parser(subparsers, parent_parser) without return types