code: def run(self):
      try:
          self.repo.install(self.args.use_pre_commit_tool)
      except DvcException:
          logger.exception("failed to install DVC Git hooks")
          return 1
      return 0
  
file_path: dvc/dvc/commands/install.py
imports: from dvc.cli import 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 the CmdInstall obj's underlying member method code with example usage: obj.run() and returns: int, int