code: def add_parser(subparsers, parent_parser):
      IMPORT_HELP = (
          "Download file or directory tracked by DVC or by Git "
          "into the workspace, and track it."
      )
  
      import_parser = subparsers.add_parser(
          "import",
          parents=[parent_parser],
          description=append_doc_link(IMPORT_HELP, "import"),
          help=IMPORT_HELP,
          formatter_class=formatter.RawTextHelpFormatter,
      )
      import_parser.add_argument(
          "url",
          help="Location of DVC or Git repository to download from",
      )
      import_parser.add_argument(
          "path",
          help="Path to a file or directory within the repository",
      ).complete = completion.FILE
      import_parser.add_argument(
          "-o",
          "--out",
          nargs="?",
          help="Destination path to download files to",
          metavar="<path>",
      ).complete = completion.DIR
      import_parser.add_argument(
          "-f",
          "--force",
          action="store_true",
          default=False,
          help="Override destination file or folder if exists.",
      )
      import_parser.add_argument(
          "--rev",
          nargs="?",
          help="Git revision (e.g. SHA, branch, tag)",
          metavar="<commit>",
      )
      no_download_exec_group = (
          import_parser.add_mutually_exclusive_group()
      )
      no_download_exec_group.add_argument(
          "--no-exec",
          action="store_true",
          default=False,
          help="Only create .dvc file without actually importing target data.",
      )
      no_download_exec_group.add_argument(
          "--no-download",
          action="store_true",
          default=False,
          help=(
              "Create .dvc file including target data hash value(s)"
              " but do not actually download the file(s)."
          ),
      )
      import_parser.add_argument(
          "-j",
          "--jobs",
          type=int,
          help=(
              "Number of jobs to run simultaneously. "
              "The default value is 4 * cpu_count(). "
          ),
          metavar="<number>",
      )
      import_parser.add_argument(
          "--config",
          type=str,
          help=(
              "Path to a config file that will be merged with the config "
              "in the target repository."
          ),
      )
      import_parser.add_argument(
          "--remote",
          type=str,
          help="Remote name to set as a default in the target repository.",
      )
      import_parser.add_argument(
          "--remote-config",
          type=str,
          nargs="*",
          action=DictAction,
          help=(
              "Remote config options to merge with a remote's config (default or one "
              "specified by '--remote') in the target repository."
          ),
      )
      import_parser.set_defaults(func=CmdImport)
  
file_path: dvc/dvc/commands/imp.py
imports: from dvc.cli import completion, formatter
  from dvc.cli.command import CmdBase
  from dvc.cli.utils import DictAction, 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