code: def plot_results(model, movielens, amazon):
      sns.set_style("darkgrid")
  
      for name, result in (
          ("Movielens", movielens),
          ("Amazon", amazon),
      ):
          print("Dataset: {}".format(name))
  
          (compression_ratio, mrr, elapsed) = process_results(
              result, verbose=True
          )
  
          plt.plot(compression_ratio, mrr, label=name)
  
      plt.ylabel("MRR ratio to baseline")
      plt.xlabel("Compression ratio")
      plt.title("Compression ratio vs MRR ratio")
  
      plt.legend(loc="lower right")
      plt.savefig("{}_plot.png".format(model))
      plt.close()
  
      for name, result in (
          ("Movielens", movielens),
          ("Amazon", amazon),
      ):
          (compression_ratio, mrr, elapsed) = process_results(result)
  
          plt.plot(compression_ratio, elapsed, label=name)
  
      plt.ylabel("Time ratio to baseline")
      plt.xlabel("Compression ratio")
      plt.title("Compression ratio vs time ratio")
      plt.legend(loc="lower right")
  
      plt.savefig("{}_time.png".format(model))
      plt.close()
  
imports: import argparse
  import pandas
  import matplotlib
  import matplotlib.pyplot
  import seaborn
  from example import Results
label_desc: Use image node_id 2 for calling a global function with example usage: plot_results(model, movielens, amazon) without return types