code: def test_worst_case_score_per_class(art_warning):
      try:
          y_true = np.array([1, 0, 1, 1, 1, 0, 1, 0])
          y_proba = np.array(
              [0.35, 0.33, 0.32, 0.6, 0.6, 0.2, 0.9, 0.1]
          )
          target_model_labels = np.array([1, 1, 1, 1, 2, 1, 2, 2])
          res = get_roc_for_fpr(
              attack_proba=y_proba,
              attack_true=y_true,
              target_model_labels=target_model_labels,
          )
          print(res)
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/metrics/privacy/test_worst_case_mia_score.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import numpy
  import pytest
  from art.metrics.privacy import get_roc_for_fpr, get_roc_for_multi_fprs
  from tests.utils import ARTTestException
label_desc: Use image node_id 5 for calling a global function with example usage: test_worst_case_score_per_class(art_warning) without return types