code: def bootstrap_prompt(prompt_kwargs, group):
      
      prompt_kwargs = prompt_kwargs or {}
  
      defaults = {
          "history": InMemoryHistory(),
          "completer": ClickCompleter(group),
          "message": u"> ",
      }
  
      for key in defaults:
          default_value = defaults[key]
          if key not in prompt_kwargs:
              prompt_kwargs[key] = default_value
  
      return prompt_kwargs
docs: Bootstrap prompt_toolkit kwargs or use user defined values.
  
      :param prompt_kwargs: The user specified prompt kwargs.