code: def run(self):
      import shtab
  
      shell = self.args.shell
      parser = self.args.parser
      script = shtab.complete(parser, shell=shell, preamble=PREAMBLE)
      ui.write(script, force=True)
      return 0
  
file_path: dvc/dvc/commands/completion.py
imports: from dvc.cli import formatter
  from dvc.cli.command import CmdBaseNoRepo
  from dvc.cli.completion import PREAMBLE
  from dvc.cli.utils import append_doc_link
  from dvc.log import logger
  from dvc.ui import ui
label_desc: Use image node_id 1 for calling the CmdCompletion obj's underlying member method code with example usage: obj.run() and returns: int