def METHOD_NAME(art_warning):
    backdoor = PoisoningAttackBackdoor(add_single_bd)
    try:
        with pytest.raises(ValueError):
            _ = BadDetObjectGenerationAttack(None, bbox_height=8, bbox_width=-1)
        with pytest.raises(ValueError):
            _ = BadDetObjectGenerationAttack(backdoor=backdoor, bbox_height=-1, bbox_width=8)
        with pytest.raises(ValueError):
            _ = BadDetObjectGenerationAttack(backdoor=backdoor, bbox_height=8, bbox_width=-1)
        with pytest.raises(ValueError):
            _ = BadDetObjectGenerationAttack(backdoor=backdoor, bbox_height=8, bbox_width=8, percent_poison=-0.1)
        with pytest.raises(ValueError):
            _ = BadDetObjectGenerationAttack(backdoor=backdoor, bbox_height=8, bbox_width=8, percent_poison=0)
        with pytest.raises(ValueError):
            _ = BadDetObjectGenerationAttack(backdoor=backdoor, bbox_height=8, bbox_width=8, percent_poison=1.1)
    except ARTTestException as e:
        art_warning(e)