code: def html_table(
      classes, table, rgb_color, normalize=False, shortener=True
  ):
      """
      Return the confusion matrix of the HTML report file.
  
      :param classes: confusion matrix classes
      :type classes: list
      :param table: input confusion matrix
      :type table: dict
      :param rgb_color: input color
      :type rgb_color: tuple
      :param normalize: save normalized matrix flag
      :type normalize: bool
      :param shortener: class name shortener flag
      :type shortener: bool
      :return: html_table as str
      """
      result = ""
      result += "<h2>Confusion Matrix "
      if normalize:
          result += "(Normalized)"
      result += ": </h2>\n"
      result += "<table>\n"
      result += '<tr style="text-align:center;">' + "\n"
      result += "<td>Actual</td>\n"
      result += "<td>Predict\n"
      table_size = str((len(classes) + 1) * 7) + "em"
      result += '<table style="border:1px solid black;border-collapse: collapse;height:{0};width:{0};">\n'.format(
          table_size
      )
      result += '<tr style="text-align:center;">\n<td></td>\n'
      part_2 = ""
      for i in classes:
          class_name = str(i)
          if len(class_name) > 6 and shortener:
              class_name = class_name[:4] + "..."
          result += (
              '<td style="border:1px solid '
              'black;padding:10px;height:7em;width:7em;">'
              + class_name
              + "</td>\n"
          )
          part_2 += '<tr style="text-align:center;">\n'
          part_2 += (
              '<td style="border:1px solid '
              'black;padding:10px;height:7em;width:7em;">'
              + class_name
              + "</td>\n"
          )
          for j in classes:
              item = table[i][j]
              color = "black"
              back_color = html_table_color(table[i], item, rgb_color)
              if min(back_color) < 128:
                  color = "white"
              part_2 += (
                  '<td style="background-color:rgb({0},{1},{2});color:{3};padding:10px;height:7em;width:7em;">'.format(
                      str(back_color[0]),
                      str(back_color[1]),
                      str(back_color[2]),
                      color,
                  )
                  + str(item)
                  + "</td>\n"
              )
          part_2 += "</tr>\n"
      result += "</tr>\n"
      part_2 += "</table>\n</td>\n</tr>\n</table>\n"
      result += part_2
      return result
  
imports: from __future__ import division
  from functools import partial
  from .pycm_param import *
  from .pycm_util import rounder, sort_char_num
  import webbrowser
label_desc: Use image node_id 5 for calling a global function with example usage: html_table(classes, table, rgb_color, normalize, shortener) and returns: result