code: def _add_html_text(
      dashboard_html, text, top_left_x, top_left_y, box_w, box_h
  ):
      html_text = """<!-- Insert box numbers -->
            context.font = '{}pt Times New Roman';
            context.textAlign = 'center';
            context.fillText({}, {} + 0.5*{}, {} + 0.5*{});
      """.format(
          FONT_SIZE, text, top_left_x, box_w, top_left_y, box_h
      )
  
      index_to_add_text = dashboard_html.find("</script>") - 1
      dashboard_html = (
          dashboard_html[:index_to_add_text]
          + html_text
          + dashboard_html[index_to_add_text:]
      )
      return dashboard_html
  
imports: import pprint
  import _plotly_utils.exceptions
  from _plotly_utils import optional_imports
  from chart_studio import exceptions
label_desc: Use image node_id 5 for calling a global function with example usage: _add_html_text(dashboard_html, text, top_left_x, top_left_y, box_w, box_h) and returns: dashboard_html