code: def convert_token(html_list):
      """
      Convert raw html to label format
      """
      token_list = ["<tbody>"]
      # final html list:
      for row in html_list:
          token_list.append("<tr>")
          for col in row:
              if col == None:
                  continue
              elif col == "td":
                  token_list.extend(["<td>", "</td>"])
              else:
                  token_list.append("<td")
                  if "colspan" in col:
                      _, n = col.split("colspan=")
                      token_list.append(' colspan="{}"'.format(n[0]))
                  if "rowspan" in col:
                      _, n = col.split("rowspan=")
                      token_list.append(' rowspan="{}"'.format(n[0]))
                  token_list.extend([">", "</td>"])
          token_list.append("</tr>")
      token_list.append("</tbody>")
  
      return token_list
  
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 14 for calling a global function with example usage: convert_token(html_list) and returns: token_list