code: def prompt(message='', **kwargs):
      
      patch_stdout = kwargs.pop('patch_stdout', False)
      return_asyncio_coroutine = kwargs.pop('return_asyncio_coroutine', False)
      true_color = kwargs.pop('true_color', False)
      refresh_interval = kwargs.pop('refresh_interval', 0)
      eventloop = kwargs.pop('eventloop', None)
  
      application = create_prompt_application(message, **kwargs)
  
      return run_application(application,
          patch_stdout=patch_stdout,
          return_asyncio_coroutine=return_asyncio_coroutine,
          true_color=true_color,
          refresh_interval=refresh_interval,
          eventloop=eventloop)
docs: Get input from the user and return it.
  
      This is a wrapper around a lot of ``prompt_toolkit`` functionality and can
      be a replacement for `raw_input`. (or GNU readline.)
  
      If you want to keep your history across several calls, create one
      :class:`~prompt_toolkit.history.History` instance and pass it every time.
  
      This function accepts many keyword arguments. Except for the following,
      they are a proxy to the arguments of :func:`.create_prompt_application`.
  
      :param patch_stdout: Replace ``sys.stdout`` by a proxy that ensures that
              print statements from other threads won't destroy the prompt. (They
              will be printed above the prompt instead.)
      :param return_asyncio_coroutine: When True, return a asyncio coroutine. (Python >3.3)
      :param true_color: When True, use 24bit colors instead of 256 colors.
      :param refresh_interval: (number; in seconds) When given, refresh the UI
          every so many seconds.