code: def interrupt_main():
      """Set _interrupt flag to True to have start_new_thread raise
      KeyboardInterrupt upon exiting."""
      if _main:
          raise KeyboardInterrupt
      else:
          global _interrupt
          _interrupt = True
  
file_path: catboost/contrib/deprecated/python/functools32/functools32/_dummy_thread32.py
label_desc: Use image node_id 6 for calling a global function with example usage: interrupt_main() without return types