code: def try_find_getch():
      macos_getch = _get_getch_impl_macos()
      if macos_getch is not None:
          return macos_getch
  
      win_getch = _get_getch_impl_win()
      if win_getch is not None:
          return win_getch
  
      unix_getch = _get_getch_impl_unix()
      if unix_getch is not None:
          return unix_getch
  
      raise Exception(
          "Could not find a getch implementation. --keypress cannot be used without it."
      )
  
file_path: vowpal_wabbit/utl/active_interactor.py
imports: import socket
  import argparse
  from typing import Callable, ContextManager, Optional, TextIO
  import contextlib
label_desc: Use image node_id 5 for calling a global function with example usage: try_find_getch() and returns: macos_getch, win_getch, unix_getch