code: def roc_curve_raw(tag, tp, fp, tn, fn, tpr, fpr, step, walltime):
      """Package raw data to one roc_curve.
      Args:
          tag (string): Data identifier
          tp (list): True Positive.
          fp (list): False Positive.
          tn (list): True Negative.
          fn (list): False Negative.
          tpr (list): true positive rate:
          fpr (list): false positive rate.
          step (int): Step of roc_curve
          walltime (int): Wall time of roc_curve
          num_thresholds (int): Number of thresholds used to draw the curve.
          weights (float): Multiple of data to display on the curve.
      Return:
          Package with format of record_pb2.Record
      """
      """
      if isinstance(tp, np.ndarray):
          tp = tp.astype(int).tolist()
      if isinstance(fp, np.ndarray):
          fp = fp.astype(int).tolist()
      if isinstance(tn, np.ndarray):
          tn = tn.astype(int).tolist()
      if isinstance(fn, np.ndarray):
          fn = fn.astype(int).tolist()
      if isinstance(tpr, np.ndarray):
          tpr = tpr.astype(int).tolist()
      if isinstance(fpr, np.ndarray):
          fpr = fpr.astype(int).tolist()
      """
      roc_curve = Record.ROC_Curve(
          TP=tp, FP=fp, TN=tn, FN=fn, tpr=tpr, fpr=fpr
      )
      return Record(
          values=[
              Record.Value(
                  id=step,
                  tag=tag,
                  timestamp=walltime,
                  roc_curve=roc_curve,
              )
          ]
      )
  
imports: import numpy
  from PIL import Image
  from visualdl.proto.record_pb2 import Record
label_desc: Use image node_id 19 for calling a global function with example usage: roc_curve_raw(tag, tp, fp, tn, fn, tpr, fpr, step, walltime) and returns: Record