code: def _input_callback(fdref, flags, info):
      """Callback to fire when there's input to be read"""
      _triggered.set()
      CFFileDescriptorInvalidate(fdref)
      CFRelease(fdref)
      NSApp = _NSApp()
      msg(NSApp, n("stop:"), NSApp)
      _wake(NSApp)
  
file_path: catboost/contrib/python/ipython/py2/IPython/terminal/pt_inputhooks/osx.py
imports: import ctypes
  import ctypes.util
  from threading import Event
label_desc: Use image node_id 6 for calling a global function with example usage: _input_callback(fdref, flags, info) without return types