code: def _asyncio_run(coro):
      """Like asyncio.run, but works when there's no event loop"""
      # for now: using tornado for broader compatibility with FDs,
      # e.g. when using the only partially functional default
      # Proactor on windows
      loop = IOLoop(make_current=False)
      try:
          return loop.run_sync(lambda: asyncio.ensure_future(coro))
      finally:
          loop.close()
  
file_path: ipyparallel/ipyparallel/_async.py
imports: import asyncio
  import concurrent.futures
  import inspect
  import threading
  from functools import partial
  from tornado.ioloop import IOLoop
label_desc: Use image node_id 1 for calling a global function with example usage: _asyncio_run(coro) and returns: loop