code: def to_html(self, state_dict=None, add_header=True):
      args = self.get_state_args(state_dict)
      metrics_df = (
          pd.DataFrame(
              self.explainer.metrics(show_metrics=self.show_metrics),
              index=["Score"],
          )
          .T.rename_axis(index="metric")
          .reset_index()
          .round(self.round)
      )
      html = to_html.table_from_df(metrics_df)
      html = to_html.card(html, title=self.title)
      if add_header:
          return to_html.add_header(html)
      return html
  
imports: import numpy
  import pandas
  import dash
  from dash import html, dcc, Input, Output, State
  from dash.exceptions import PreventUpdate
  import dash_bootstrap_components
  from ..dashboard_methods import *
  from ..None import to_html
label_desc: Use image node_id 3 for calling the RegressionModelSummaryComponent obj's underlying member method code with example usage: obj.to_html(state_dict, add_header) and returns: html, to_html