code: def sweep(score, x):
      """
      Compute a ROC curve and then return the FPR, TPR, AUC, and ACC.
      """
      fpr, tpr, _ = roc_curve(x, -score)
      acc = np.max(1 - (fpr + (1 - tpr)) / 2)
      return fpr, tpr, auc(fpr, tpr), acc
  
file_path: privacy/research/mi_lira_2021/plot.py
imports: import os
  import scipy.stats
  import numpy
  import matplotlib.pyplot
  from sklearn.metrics import auc, roc_curve
  import functools
  import matplotlib
label_desc: Use image node_id 1 for calling a global function with example usage: sweep(score, x) and returns: fpr,  tpr,  auc,  acc