code: def plot_perf(df, engines, title, filename=None) -> None:
      from matplotlib.pyplot import figure
  
      sns.set()
      sns.set_palette("Set2")
  
      fig = figure(figsize=(4, 3), dpi=120)
      ax = fig.add_subplot(111)
  
      for engine in engines:
          ax.loglog(df["size"], df[engine], label=engine, lw=2)
  
      ax.set_xlabel("Number of Rows")
      ax.set_ylabel("Time (s)")
      ax.set_title(title)
      ax.legend(loc="best")
      ax.tick_params(top=False, right=False)
  
      fig.tight_layout()
  
      if filename is not None:
          fig.savefig(filename)
  
file_path: pandas/doc/scripts/eval_performance.py
imports: from timeit import repeat
  import numpy
  import seaborn
  from pandas import DataFrame
label_desc: Use image node_id 4 for calling a global function with example usage: plot_perf(df, engines, title, filename) without return types