code: def run(self):
      from dvc.exceptions import DvcException, InvalidArgumentError
  
      try:
          self.validate_args()
      except InvalidArgumentError:
          logger.exception("")
          return 1
  
      try:
          self.repo.add(
              self.args.targets,
              no_commit=self.args.no_commit,
              glob=self.args.glob,
              out=self.args.out,
              remote=self.args.remote,
              to_remote=self.args.to_remote,
              remote_jobs=self.args.remote_jobs,
              force=self.args.force,
          )
      except FileNotFoundError:
          logger.exception("")
          return 1
      except DvcException:
          logger.exception("")
          return 1
      return 0
  
file_path: dvc/dvc/commands/add.py
imports: from dvc.cli import completion, formatter
  from dvc.cli.command import CmdBase
  from dvc.cli.utils import append_doc_link
  from dvc.log import logger
label_desc: Use image node_id 2 for calling the CmdAdd obj's underlying member method code with example usage: obj.run() and returns: int, int, int, int