code: def magic_html_parser(html_text, partfiles):
      """Return safety-sanitized html linked to partfiles.
  
      Rewrite the href="cid:...." attributes to point to the filenames in partfiles.
      Though not trivial, this should be possible using html.parser.
      """
      raise NotImplementedError("Add the magic needed")
  
file_path: cpython/Doc/includes/email-read-alternative.py
imports: import os
  import sys
  import tempfile
  import mimetypes
  import webbrowser
  from email import policy
  from email.parser import BytesParser
label_desc: Use image node_id 1 for calling a global function with example usage: magic_html_parser(html_text, partfiles) without return types