code: def check_engine(handle):
      
      if handle == 'help':
          dump_engines()
          sys.exit(0)
  
      if handle not in engines.engines:
          print('Engine "%s" is not available.' % (handle,), file=sys.stderr)
          sys.exit(1)
docs: Check availability of requested template engine.