code: def make_per_round_plots(
      df: pd.DataFrame, palette: dict, outdir: Path
  ) -> None:
      sns.set_theme(style="darkgrid")
  
      opponents = set(col.split(" vs ")[1] for col in df.columns)
      for opponent in opponents:
          opp_df = df[
              [
                  col
                  for col in df.columns
                  if col.endswith(f" vs {opponent}")
              ]
          ]
          opp_df.columns = [
              col.split(" vs ")[0] for col in opp_df.columns
          ]
          outpath = outdir / f"per_round_{opponent}.png"
          _make_per_round_plot(opp_df, palette, opponent, outpath)
  
file_path: evals/evals/elsuite/bluff/scripts/make_plots.py
imports: import argparse
  from pathlib import Path
  import matplotlib.pyplot
  import pandas
  import seaborn
  from evals.utils import log_utils
label_desc: Use image node_id 4 for calling a global function with example usage: make_per_round_plots(df, palette, outdir) without return types