code: def _check_init_script(path, sentinel):
      if not os.path.exists(path):
          return
      lines = open(path).readlines()
      for i, line in enumerate(lines):
          if sentinel in line:
              cli.out(
                  f"Guild completion is already installed in {util.format_dir(path)} "
                  f"(line {i + 1}):\n  {line.rstrip()}",
                  err=True,
              )
              raise SystemExit(0)
  
imports: import glob
  import logging
  import os
  import shutil
  import sys
  import guild
  from guild import cli
  from guild import config
  from guild import util
label_desc: Use image node_id 11 for calling a global function with example usage: _check_init_script(path, sentinel) without return types