class_docstr: Given as a parameter to the inputhook.
code: def __init__(self, inputhook):
      assert callable(inputhook)
  
      self.inputhook = inputhook
      self._input_is_ready = None
  
      self._r, self._w = os.pipe()
  
file_path: catboost/contrib/python/prompt-toolkit/py2/prompt_toolkit/eventloop/inputhook.py
imports: from __future__ import unicode_literals
  import os
  import threading
  from prompt_toolkit.utils import is_windows
  from .select import select_fds
label_desc: Use image node_id 1 to create a new InputHookContext object from inherited base classes: object with example: obj = InputHookContext(inputhook)