docstr: Download the specified artifact.
docstr_tok: ["Download","the","specified","artifact","."]
code: def download(
      self,
      name: str,
      version: Optional[str] = None,
      stage: Optional[str] = None,
      out: Optional[str] = None,
      force: bool = False,
      jobs: Optional[int] = None,
  ) -> Tuple[int, str]:
      """Download the specified artifact."""
      from dvc.fs import download as fs_download
  
      logger.debug("Trying to download artifact '%s' via DVC", name)
      rev = self.get_rev(name, version=version, stage=stage)
      with self.repo.switch(rev):
          path = self.get_path(name)
          out = resolve_output(path, out, force=force)
          fs = self.repo.dvcfs
          fs_path = fs.from_os_path(path)
          count = fs_download(
              fs,
              fs_path,
              os.path.abspath(out),
              jobs=jobs,
          )
      return count, out
  
imports: import os
  import posixpath
  from pathlib import Path
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Union
  from dvc.annotations import Artifact
  from dvc.dvcfile import PROJECT_FILE
  from dvc.exceptions import ArtifactNotFoundError, DvcException, FileExistsLocallyError, InvalidArgumentError
  from dvc.log import logger
  from dvc.utils import relpath, resolve_output
  from dvc.utils.objects import cached_property
  from dvc.utils.serialize import modify_yaml
label_desc: Use image node_id 7 for calling the Artifacts obj's underlying member method code with example usage: obj.download(name, version, stage, out, force, jobs) and returns: count,  out