code: def do_wait(coro: Callable) -> Any:
      
  
      event_loop = None
      try:
          event_loop = asyncio.get_event_loop()
      except RuntimeError:
          event_loop = asyncio.new_event_loop()
          asyncio.set_event_loop(event_loop)
      return event_loop.run_until_complete(coro)
docs: Perform aynchronous operation; await then return the result.
  
      :param coro: coroutine to await
      :return: coroutine result