code: def layout(self):
      return dbc.Card(
          [
              make_hideable(
                  dbc.CardHeader(
                      [
                          html.Div(
                              [
                                  html.H3(
                                      self.title,
                                      id="contributions-graph-title-"
                                      + self.name,
                                  ),
                                  make_hideable(
                                      html.H6(
                                          self.subtitle,
                                          className="card-subtitle",
                                      ),
                                      hide=self.hide_subtitle,
                                  ),
                                  dbc.Tooltip(
                                      self.description,
                                      target="contributions-graph-title-"
                                      + self.name,
                                  ),
                              ]
                          ),
                      ]
                  ),
                  hide=self.hide_title,
              ),
              dbc.CardBody(
                  [
                      dbc.Row(
                          [
                              make_hideable(
                                  dbc.Col(
                                      [self.selector.layout()], md=2
                                  ),
                                  hide=self.hide_selector,
                              ),
                          ],
                          justify="right",
                      ),
                      dbc.Row(
                          [
                              make_hideable(
                                  dbc.Col(
                                      [
                                          dbc.Label(
                                              f"{self.explainer.index_name}:",
                                              id="contributions-graph-index-label-"
                                              + self.name,
                                          ),
                                          dbc.Tooltip(
                                              f"Select the {self.explainer.index_name} to display the feature contributions for",
                                              target="contributions-graph-index-label-"
                                              + self.name,
                                          ),
                                          self.index_selector.layout(),
                                      ],
                                      md=4,
                                  ),
                                  hide=self.hide_index,
                              ),
                              make_hideable(
                                  dbc.Col(
                                      [
                                          dbc.Label(
                                              "Depth:",
                                              id="contributions-graph-depth-label-"
                                              + self.name,
                                          ),
                                          dbc.Tooltip(
                                              "Number of features to display",
                                              target="contributions-graph-depth-label-"
                                              + self.name,
                                          ),
                                          dbc.Select(
                                              id="contributions-graph-depth-"
                                              + self.name,
                                              options=[
                                                  {
                                                      "label": str(
                                                          i + 1
                                                      ),
                                                      "value": i + 1,
                                                  }
                                                  for i in range(
                                                      self.explainer.n_features
                                                  )
                                              ],
                                              value=None
                                              if self.depth is None
                                              else str(self.depth),
                                              size="sm",
                                          ),
                                      ],
                                      md=2,
                                  ),
                                  hide=self.hide_depth,
                              ),
                              make_hideable(
                                  dbc.Col(
                                      [
                                          dbc.Label(
                                              "Sorting:",
                                              id="contributions-graph-sorting-label-"
                                              + self.name,
                                          ),
                                          dbc.Tooltip(
                                              "Sort the features either by highest absolute (positive or negative) impact (absolute), "
                                              "from most positive the most negative (high-to-low)"
                                              "from most negative to most positive (low-to-high or "
                                              "according the global feature importance ordering (importance).",
                                              target="contributions-graph-sorting-label-"
                                              + self.name,
                                          ),
                                          dbc.Select(
                                              id="contributions-graph-sorting-"
                                              + self.name,
                                              options=[
                                                  {
                                                      "label": "Absolute",
                                                      "value": "abs",
                                                  },
                                                  {
                                                      "label": "High to Low",
                                                      "value": "high-to-low",
                                                  },
                                                  {
                                                      "label": "Low to High",
                                                      "value": "low-to-high",
                                                  },
                                                  {
                                                      "label": "Importance",
                                                      "value": "importance",
                                                  },
                                              ],
                                              value=self.sort,
                                              size="sm",
                                          ),
                                      ],
                                      md=2,
                                  ),
                                  hide=self.hide_sort,
                              ),
                              make_hideable(
                                  dbc.Col(
                                      [
                                          dbc.Label(
                                              "Orientation:",
                                              id="contributions-graph-orientation-label-"
                                              + self.name,
                                          ),
                                          dbc.Tooltip(
                                              "Show vertical bars left to right or horizontal bars from top to bottom",
                                              target="contributions-graph-orientation-label-"
                                              + self.name,
                                          ),
                                          dbc.Select(
                                              id="contributions-graph-orientation-"
                                              + self.name,
                                              options=[
                                                  {
                                                      "label": "Vertical",
                                                      "value": "vertical",
                                                  },
                                                  {
                                                      "label": "Horizontal",
                                                      "value": "horizontal",
                                                  },
                                              ],
                                              value=self.orientation,
                                              size="sm",
                                          ),
                                      ],
                                      md=2,
                                  ),
                                  hide=self.hide_orientation,
                              ),
                          ]
                      ),
                      dbc.Row(
                          [
                              dbc.Col(
                                  [
                                      dcc.Loading(
                                          id="loading-contributions-graph-"
                                          + self.name,
                                          children=[
                                              dcc.Graph(
                                                  id="contributions-graph-"
                                                  + self.name,
                                                  config=dict(
                                                      modeBarButtons=[
                                                          ["toImage"]
                                                      ],
                                                      displaylogo=False,
                                                  ),
                                              )
                                          ],
                                      ),
                                  ]
                              ),
                          ]
                      ),
                      dbc.Row(
                          [
                              make_hideable(
                                  dbc.Col(
                                      [self.popout.layout()],
                                      md=2,
                                      align="start",
                                  ),
                                  hide=self.hide_popout,
                              ),
                          ],
                          justify="end",
                      ),
                  ]
              ),
          ],
          class_name="h-100",
      )
  
imports: 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 ShapContributionsGraphComponent obj's underlying member method code with example usage: obj.layout() and returns: dbc