class_docstr: Subclass of base display hook using coloured prompt
code: def write_output_prompt(self):
      sys.stdout.write(self.shell.separate_out)
      # If we're not displaying a prompt, it effectively ends with a newline,
      # because the output will be left-aligned.
      self.prompt_end_newline = True
  
      if self.do_full_cache:
          tokens = self.shell.prompts.out_prompt_tokens()
          prompt_txt = "".join(s for t, s in tokens)
          if prompt_txt and not prompt_txt.endswith("\n"):
              # Ask for a newline before multiline output
              self.prompt_end_newline = False
  
          if self.shell.pt_cli:
              self.shell.pt_cli.print_tokens(tokens)
          else:
              sys.stdout.write(prompt_txt)
  
imports: from __future__ import print_function
  from pygments.token import Token
  import sys
  from IPython.core.displayhook import DisplayHook
  from prompt_toolkit.layout.utils import token_list_width
label_desc: Use image node_id 1 for calling the RichPromptDisplayHook obj's underlying member method code with example usage: obj.write_output_prompt() without return types