code: def plot_stacked(
      fobject,
      title=None,
      other_objects=None,
      metrics=["TPR", "PPV", "STP", "ACC", "FPR"],
      verbose=True,
      **kwargs,
  ):
      data = utils._unwrap_parity_loss_data(
          fobject, other_objects, metrics, verbose
      )
  
      fig = px.bar(
          data,
          x="score",
          y="label",
          custom_data=[np.round(data.score, 3), data.metric],
          labels={"score": "cumulated parity loss"},
          orientation="h",
          color="metric",
          color_discrete_sequence=_theme.get_default_colors(
              len(metrics), type="line"
          ),
      )
      # no outline
      fig.update_traces(marker_line_width=0)
  
      # hover
  
      if title is None:
          title = "Stacked Parity Loss Metrics"
      fig.update_layout(utils._fairness_theme(title))
      fig.update_yaxes(showgrid=False, zeroline=False)
  
      fig.update_traces(
          hovertemplate="<br>".join(
              [
                  "<b>%{label}</b><br>"
                  "Metric: %{customdata[1]}<br>"
                  "Parity loss: %{customdata[0]}",
                  "<extra></extra>",
              ]
          )
      )
  
      return fig
  
imports: import numpy
  import pandas
  import plotly.express
  import plotly.graph_objects
  from plotly.subplots import make_subplots
  from .None import checks
  from .None import utils
  from .._basics import checks
  from .._basics.exceptions import ParameterCheckError
  from ...None import _theme
  from ..._explainer import helper
label_desc: Use image node_id 5 for calling a global function with example usage: plot_stacked(fobject, title, other_objects, metrics, verbose) and returns: fig