code: def _pseudo_sync_runner(coro):
      """
      A runner that does not really allow async execution, and just advance the coroutine.
  
      See discussion in https://github.com/python-trio/trio/issues/608,
  
      Credit to Nathaniel Smith
      """
      try:
          coro.send(None)
      except StopIteration as exc:
          return exc.value
      else:
          # TODO: do not raise but return an execution result with the right info.
          raise RuntimeError(
              "{coro_name!r} needs a real async loop".format(
                  coro_name=coro.__name__
              )
          )
  
file_path: catboost/contrib/python/ipython/py3/IPython/core/async_helpers.py
imports: import ast
  import asyncio
  import inspect
  from functools import wraps
label_desc: Use image node_id 4 for calling a global function with example usage: _pseudo_sync_runner(coro) and returns: exc