code: def test_worst_case_targeted_fpr_1(art_warning):
      try:
          tpr = 1.0
          thr = 0.32
          fpr = 0.5
          y_true = np.array([1, 0, 1, 1, 1, 0])
          y_proba = np.array([0.35, 0.33, 0.32, 0.6, 0.6, 0.2])
          res = get_roc_for_fpr(
              attack_proba=y_proba, attack_true=y_true, targeted_fpr=0.5
          )[0]
          assert res[0] == fpr
          assert res[1] == tpr
          assert res[2] == thr
          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 2 for calling a global function with example usage: test_worst_case_targeted_fpr_1(art_warning) without return types