code: def _stop_after(delay):
      """Register callback to stop eventloop after a delay"""
      timer = CFRunLoopTimerCreate(
          None,  # allocator
          CFAbsoluteTimeGetCurrent() + delay,  # fireDate
          0,  # interval
          0,  # flags
          0,  # order
          _c_stop_callback,
          None,
      )
      CFRunLoopAddTimer(
          CFRunLoopGetMain(),
          timer,
          kCFRunLoopCommonModes,
      )
  
file_path: catboost/contrib/python/ipykernel/py3/ipykernel/_eventloop_macos.py
imports: import ctypes
  import ctypes.util
  from threading import Event
label_desc: Use image node_id 7 for calling a global function with example usage: _stop_after(delay) without return types