code: def _add_transfer(
      stage: "Stage",
      source: str,
      remote: Optional[str] = None,
      to_remote: bool = False,
      jobs: Optional[int] = None,
      force: bool = False,
  ) -> None:
      odb = None
      if to_remote:
          odb = stage.repo.cloud.get_remote_odb(remote, "add")
      stage.transfer(
          source, odb=odb, to_remote=to_remote, jobs=jobs, force=force
      )
      stage.dump()
  
file_path: dvc/dvc/repo/add.py
imports: import os
  from contextlib import contextmanager
  from typing import TYPE_CHECKING, Dict, Iterator, List, NamedTuple, Optional, Tuple, Union
  from dvc.exceptions import CacheLinkError, DvcException, OutputDuplicationError, OutputNotFoundError, OverlappingOutputPathsError
  from dvc.repo.scm_context import scm_context
  from dvc.ui import ui
  from dvc.utils import glob_targets, resolve_output, resolve_paths
  from .None import locked
label_desc: Use image node_id 6 for calling a global function with example usage: _add_transfer(stage, source, remote, to_remote, jobs, force) without return types