code: def test_check_params(art_warning):
      backdoor = PoisoningAttackBackdoor(add_single_bd)
  
      try:
          with pytest.raises(ValueError):
              _ = BadDetRegionalMisclassificationAttack(None)
  
          with pytest.raises(ValueError):
              _ = BadDetRegionalMisclassificationAttack(
                  backdoor=backdoor, percent_poison=-0.1
              )
  
          with pytest.raises(ValueError):
              _ = BadDetRegionalMisclassificationAttack(
                  backdoor=backdoor, percent_poison=0
              )
  
          with pytest.raises(ValueError):
              _ = BadDetRegionalMisclassificationAttack(
                  backdoor=backdoor, percent_poison=1.1
              )
  
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/attacks/poison/bad_det/test_bad_det_rma.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import os
  import numpy
  import pytest
  from art.attacks.poisoning import BadDetRegionalMisclassificationAttack, PoisoningAttackBackdoor
  from art.attacks.poisoning.perturbations import add_single_bd, add_pattern_bd, insert_image
  from tests.utils import ARTTestException
label_desc: Use image node_id 4 for calling a global function with example usage: test_check_params(art_warning) without return types