code: def html_overall_stat(
      overall_stat,
      digit=5,
      overall_param=None,
      recommended_list=(),
      alt_link=False,
  ):
      """
      Return the overall stats of HTML report file.
  
      :param overall_stat: overall stats
      :type overall_stat: dict
      :param digit: scale (number of fraction digits)(default value: 5)
      :type digit: int
      :param overall_param: overall parameters list for print, Example: ["Kappa", "Scott PI"]
      :type overall_param: list
      :param recommended_list: recommended statistics list
      :type recommended_list: list or tuple
      :param alt_link: alternative link for document flag
      :type alt_link: bool
      :return: html_overall_stat as str
      """
      document_link = DOCUMENT_ADR
      if alt_link:
          document_link = DOCUMENT_ADR_ALT
      result = ""
      result += "<h2>Overall Statistics : </h2>\n"
      result += '<table style="border:1px solid black;border-collapse: collapse;">\n'
      overall_stat_keys = sort_char_num(overall_stat.keys())
      if isinstance(overall_param, list):
          if set(overall_param) <= set(overall_stat_keys):
              overall_stat_keys = sort_char_num(overall_param)
      if len(overall_stat_keys) < 1:
          return ""
      for i in overall_stat_keys:
          background_color = DEFAULT_BACKGROUND_COLOR
          if i in recommended_list:
              background_color = RECOMMEND_BACKGROUND_COLOR
          result += '<tr style="text-align:center;">\n'
          result += (
              '<td style="border:1px solid black;padding:4px;text-align:left;background-color:{};"><a href="'.format(
                  background_color
              )
              + document_link
              + PARAMS_LINK[i]
              + '" style="text-decoration:None;">'
              + str(i)
              + "</a></td>\n"
          )
          if i in BENCHMARK_LIST:
              background_color = BENCHMARK_COLOR[i][overall_stat[i]]
              result += '<td style="border:1px solid black;padding:4px;background-color:{};">'.format(
                  background_color
              )
          else:
              result += (
                  '<td style="border:1px solid black;padding:4px;">'
              )
          result += rounder(overall_stat[i], digit) + "</td>\n"
          result += "</tr>\n"
      result += "</table>\n"
      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 6 for calling a global function with example usage: html_overall_stat(overall_stat, digit, overall_param, recommended_list, alt_link) and returns: result, str