code: def layout(self):
      metrics_dict = self.explainer.metrics_descriptions()
      metrics_df = (
          pd.DataFrame(
              self.explainer.metrics(show_metrics=self.show_metrics),
              index=["Score"],
          )
          .T.rename_axis(index="metric")
          .reset_index()
          .round(self.round)
      )
      metrics_table = dbc.Table.from_dataframe(
          metrics_df, striped=False, bordered=False, hover=False
      )
      metrics_table, tooltips = get_dbc_tooltips(
          metrics_table,
          metrics_dict,
          "reg-model-summary-div-hover",
          self.name,
      )
      return dbc.Card(
          [
              make_hideable(
                  dbc.CardHeader(
                      [
                          html.Div(
                              [
                                  html.H3(
                                      self.title,
                                      id="reg-model-summary-title-"
                                      + self.name,
                                  ),
                                  make_hideable(
                                      html.H6(
                                          self.subtitle,
                                          className="card-subtitle",
                                      ),
                                      hide=self.hide_subtitle,
                                  ),
                                  dbc.Tooltip(
                                      self.description,
                                      target="reg-model-summary-title-"
                                      + self.name,
                                  ),
                              ]
                          ),
                      ]
                  ),
                  hide=self.hide_title,
              ),
              dbc.CardBody([metrics_table, *tooltips]),
          ]
      )
  
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 2 for calling the RegressionModelSummaryComponent obj's underlying member method code with example usage: obj.layout() and returns: dbc