code: def create_prompt(prompt):
      
      if prompt is None:
          prompt = 'python'
      if prompt == 'python':
          prompt = PythonPromptManager
      elif prompt == 'ipython':
          prompt = IPythonPromptManager
      # Instanciate the class.
      if isinstance(prompt, BasePromptManager):
          return prompt
      else:
          return prompt()
docs: Create a prompt manager.
  
      Parameters
      ----------
  
      prompt : str or class driving from BasePromptManager
          The prompt name ('python' or 'ipython') or a custom PromptManager
          class.