code: def rebuild_html_from_ppstructure_label(label_info):
      from html import escape
  
      html_code = label_info["html"]["structure"]["tokens"].copy()
      to_insert = [
          i for i, tag in enumerate(html_code) if tag in ("<td>", ">")
      ]
      for i, cell in zip(
          to_insert[::-1], label_info["html"]["cells"][::-1]
      ):
          if cell["tokens"]:
              cell = [
                  escape(token) if len(token) == 1 else token
                  for token in cell["tokens"]
              ]
              cell = "".join(cell)
              html_code.insert(i + 1, cell)
      html_code = "".join(html_code)
      html_code = "<html><body><table>{}</table></body></html>".format(
          html_code
      )
      return html_code
  
imports: import hashlib
  import os
  import re
  import sys
  from math import sqrt
  import cv2
  import numpy
  from PyQt5.QtCore import QRegExp, QT_VERSION_STR
  from PyQt5.QtGui import QIcon, QRegExpValidator, QColor
  from PyQt5.QtWidgets import QPushButton, QAction, QMenu
  from libs.ustr import ustr
label_desc: Use image node_id 15 for calling a global function with example usage: rebuild_html_from_ppstructure_label(label_info) and returns: html_code