class_docstr: A trio loop runner.
class_docstr_tok: ["A","trio","loop","runner","."]
docstr: Handle a function call.
docstr_tok: ["Handle","a","function","call","."]
code: def __call__(self, async_fn):
      """Handle a function call."""
  
      async def loc(coro):
          """A thread runner context."""
          self._cell_cancel_scope = trio.CancelScope()
          with self._cell_cancel_scope:
              return await coro
          self._cell_cancel_scope = None  # type:ignore[unreachable]
          return None
  
      return trio.from_thread.run(
          loc, async_fn, trio_token=self._trio_token
      )
  
file_path: catboost/contrib/python/ipykernel/py3/ipykernel/trio_runner.py
imports: import builtins
  import logging
  import signal
  import threading
  import traceback
  import warnings
  import trio
label_desc: Use image node_id 5 for calling the TrioRunner obj's underlying member method code with example usage: obj.__call__(async_fn) and returns: trio, None, unknown