code: def test_check_params(art_warning):
      try:
          with pytest.raises(ValueError):
              _ = Cutout(length=-1)
  
          with pytest.raises(ValueError):
              _ = Cutout(length=0)
  
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/defences/preprocessor/cutout/test_cutout.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from art.config import ART_NUMPY_DTYPE
  from art.defences.preprocessor import Cutout
  from tests.utils import ARTTestException
label_desc: Use image node_id 8 for calling a global function with example usage: test_check_params(art_warning) without return types