code: def create_asyncio_eventloop(loop=None):
      
      # Inline import, to make sure the rest doesn't break on Python 2. (Where
      # asyncio is not available.)
      if is_windows():
          from prompt_toolkit.eventloop.asyncio_win32 import Win32AsyncioEventLoop as AsyncioEventLoop
      else:
          from prompt_toolkit.eventloop.asyncio_posix import PosixAsyncioEventLoop as AsyncioEventLoop
  
      return AsyncioEventLoop(loop)
docs: Returns an asyncio :class:`~prompt_toolkit.eventloop.EventLoop` instance
      for usage in a :class:`~prompt_toolkit.interface.CommandLineInterface`. It
      is a wrapper around an asyncio loop.
  
      :param loop: The asyncio eventloop (or `None` if the default asyncioloop
                   should be used.)