class_docstr: Subclass of base display hook using coloured prompt
class_docstr_tok: ["Subclass","of","base","display","hook","using","coloured","prompt"]
code: def write_format_data(self, format_dict, md_dict=None) -> None:
      if self.shell.mime_renderers:
          for mime, handler in self.shell.mime_renderers.items():
              if mime in format_dict:
                  handler(format_dict[mime], None)
                  return
  
      super().write_format_data(format_dict, md_dict)
  
imports: from pygments.token import Token
  import sys
  from IPython.core.displayhook import DisplayHook
  from prompt_toolkit.formatted_text import fragment_list_width, PygmentsTokens
  from prompt_toolkit.shortcuts import print_formatted_text
  from prompt_toolkit.enums import EditingMode
label_desc: Use image node_id 2 for calling the RichPromptDisplayHook obj's underlying member method code with example usage: obj.write_format_data(format_dict, md_dict) without return types