code: def model_perf_plots(df):
      """Function to plot model performance metrics.
  
      Args:
          df (pandas.DataFrame): Dataframe in tidy format, with ['epoch','level','value'] columns
  
      Returns:
          object: matplotlib axes
      """
      g = sns.FacetGrid(
          df, col="metric", hue="stage", col_wrap=2, sharey=False
      )
      g = g.map(sns.scatterplot, "epoch", "value").add_legend()
  
file_path: recommenders/recommenders/models/lightfm/lightfm_utils.py
imports: import pandas
  import numpy
  import seaborn
  from lightfm.evaluation import precision_at_k, recall_at_k
label_desc: Use image node_id 1 for calling a global function with example usage: model_perf_plots(df) without return types