code: def run(self):
      from dvc.repo.artifacts import Artifacts
      from dvc.scm import CloneError
      from dvc.ui import ui
  
      try:
          count, out = Artifacts.get(
              self.args.url,
              name=self.args.name,
              version=self.args.rev,
              stage=self.args.stage,
              force=self.args.force,
              config=self.args.config,
              remote=self.args.remote,
              remote_config=self.args.remote_config,
              out=self.args.out,
          )
          ui.write(f"Downloaded {count} file(s) to '{out}'")
          return 0
      except CloneError:
          logger.exception("failed to get '%s'", self.args.name)
          return 1
      except DvcException:
          logger.exception(
              "failed to get '%s' from '%s'",
              self.args.name,
              self.args.url,
          )
          return 1
  
file_path: dvc/dvc/commands/artifacts.py
imports: from dvc.cli import completion, formatter
  from dvc.cli.command import CmdBaseNoRepo
  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 the CmdArtifactsGet obj's underlying member method code with example usage: obj.run() and returns: int, int, int