code: def add_parser(subparsers, parent_parser):
      UPDATE_HELP = (
          "Update data artifact imported (via dvc import or dvc import-url) "
          "from an external DVC repository or URL."
      )
      update_parser = subparsers.add_parser(
          "update",
          parents=[parent_parser],
          description=append_doc_link(UPDATE_HELP, "update"),
          help=UPDATE_HELP,
          formatter_class=formatter.RawDescriptionHelpFormatter,
      )
      update_parser.add_argument(
          "targets", nargs="+", help=".dvc files to update."
      ).complete = completion.DVC_FILE
      update_parser.add_argument(
          "--rev",
          nargs="?",
          help="Git revision (e.g. SHA, branch, tag)",
          metavar="<commit>",
      )
      update_parser.add_argument(
          "-R",
          "--recursive",
          action="store_true",
          default=False,
          help="Update all stages in the specified directory.",
      )
      update_parser.add_argument(
          "--no-download",
          action="store_true",
          default=False,
          help=(
              "Update .dvc file git revision/hash value(s)"
              " but do not download the file(s)."
          ),
      )
      update_parser.add_argument(
          "--to-remote",
          action="store_true",
          default=False,
          help="Update data directly on the remote",
      )
      update_parser.add_argument(
          "-r",
          "--remote",
          help="Remote storage to perform updates to",
          metavar="<name>",
      )
      update_parser.add_argument(
          "-j",
          "--jobs",
          type=int,
          help=(
              "Number of jobs to run simultaneously. "
              "The default value is 4 * cpu_count(). "
          ),
          metavar="<number>",
      )
      update_parser.set_defaults(func=CmdUpdate)
  
file_path: dvc/dvc/commands/update.py
imports: 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
label_desc: Use image node_id 1 for calling a global function with example usage: add_parser(subparsers, parent_parser) without return types