code: def test_pgd(art_warning, get_pytorch_faster_rcnn):
      try:
          from art.attacks.evasion import ProjectedGradientDescent
  
          object_detector, x_test, y_test = get_pytorch_faster_rcnn
  
          attack = ProjectedGradientDescent(
              estimator=object_detector, max_iter=2
          )
          x_test_adv = attack.generate(x=x_test, y=y_test)
          np.testing.assert_raises(
              AssertionError,
              np.testing.assert_array_equal,
              x_test_adv,
              x_test,
          )
  
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/estimators/object_detection/test_pytorch_faster_rcnn.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import numpy
  import pytest
  from tests.utils import ARTTestException
label_desc: Use image node_id 8 for calling a global function with example usage: test_pgd(art_warning, get_pytorch_faster_rcnn) without return types