code: def f1(data: Dict[str, float], title: str):
      from plotly.subplots import make_subplots
  
      fig = make_subplots(
          rows=1,
          cols=3,
          subplot_titles=[
              "macro average",
              "micro average",
              "per label",
          ],
      )
  
      fig.add_bar(
          x=[k.split("_")[0] for k, v in data.items() if "macro" in k],
          y=[v for k, v in data.items() if "macro" in k],
          row=1,
          col=1,
      )
      fig.add_bar(
          x=[k.split("_")[0] for k, v in data.items() if "micro" in k],
          y=[v for k, v in data.items() if "micro" in k],
          row=1,
          col=2,
      )
      per_label = {
          k: v
          for k, v in data.items()
          if all(key not in k for key in ["macro", "micro", "support"])
      }
  
      fig.add_bar(
          x=[k for k, v in per_label.items()],
          y=[v for k, v in per_label.items()],
          row=1,
          col=3,
      )
      fig.update_layout(showlegend=False, title_text=title)
  
      return fig
  
file_path: argilla/src/argilla/metrics/helpers.py
imports: from typing import Dict
label_desc: Use image node_id 7 for calling a global function with example usage: f1(data, title) and returns: fig