code: def stacked_bar(
      x: list,
      y_s: Dict[str, list],
      title: str = "Bar",
      x_legend: str = "",
      y_legend: str = "",
  ):
      import plotly.graph_objects as go
  
      if not x or not y_s:
          return empty_visualization()
  
      data = [
          go.Bar(name=name, x=x, y=y_values)
          for name, y_values in y_s.items()
      ]
  
      fig = go.Figure(data=data)
      fig.update_layout(
          title=title,
          xaxis_title=x_legend,
          yaxis_title=y_legend,
          barmode="stack",
      )
  
      return fig
  
file_path: argilla/src/argilla/metrics/helpers.py
imports: from typing import Dict
label_desc: Use image node_id 3 for calling a global function with example usage: stacked_bar(x, y_s, title, x_legend, y_legend) and returns: fig, empty_visualization