code: def fig_fpr_tpr(poison_mask, scores, keep):
      plt.figure(figsize=(4, 3))
  
      # evaluate LiRA on the points that were not targeted by poisoning
      do_plot_all(
          functools.partial(generate_ours, fix_variance=True),
          keep[:, ~poison_mask],
          scores[:, ~poison_mask],
          "No poison (LiRA)\n",
          metric="auc",
      )
  
      # evaluate the global-threshold attack on the points that were not targeted by poisoning
      do_plot_all(
          generate_global,
          keep[:, ~poison_mask],
          scores[:, ~poison_mask],
          "No poison (Global threshold)\n",
          metric="auc",
          ls="--",
          c=plt.gca().lines[-1].get_color(),
      )
  
      # evaluate LiRA on the points that were targeted by poisoning
      do_plot_all(
          functools.partial(generate_ours, fix_variance=True),
          keep[:, poison_mask],
          scores[:, poison_mask],
          "With poison (LiRA)\n",
          metric="auc",
      )
  
      # evaluate the global-threshold attack on the points that were targeted by poisoning
      do_plot_all(
          generate_global,
          keep[:, poison_mask],
          scores[:, poison_mask],
          "With poison (Global threshold)\n",
          metric="auc",
          ls="--",
          c=plt.gca().lines[-1].get_color(),
      )
  
      plt.semilogx()
      plt.semilogy()
      plt.xlim(1e-3, 1)
      plt.ylim(1e-3, 1)
      plt.xlabel("False Positive Rate")
      plt.ylabel("True Positive Rate")
      plt.plot([0, 1], [0, 1], ls="--", color="gray")
      plt.subplots_adjust(bottom=0.18, left=0.18, top=0.96, right=0.96)
      plt.legend(fontsize=8)
      plt.savefig("/tmp/fprtpr.png")
      plt.show()
  
imports: import os
  import numpy
  import matplotlib.pyplot
  import functools
  import matplotlib
  from plot import sweep, load_data, generate_ours, generate_global
label_desc: Use image node_id 2 for calling a global function with example usage: fig_fpr_tpr(poison_mask, scores, keep) without return types