code: def render_html_tree(tree):
      
  
      # Restore any tag names that were changed in get_html_tree()
      for el in tree.iter():
          if '__tag_name' in el.attrib:
              actual_tag_name = el.attrib.pop('__tag_name')
              el.tag = actual_tag_name
  
      html = lxml.html.tostring(tree, encoding='utf8').decode('utf8')
  
      return strip_wrapping(html)
docs: Renders the given HTML tree, and strips any wrapping that was applied in
      get_html_tree().
  
      You should avoid further processing of the given tree after calling this
      method because we modify namespaced tags here.