code: def test_check_params(art_warning):
      try:
          with pytest.raises(ValueError):
              JpegCompression(clip_values=(-1, 255))
  
          with pytest.raises(ValueError):
              _ = JpegCompression(clip_values=(0, 2))
  
          with pytest.raises(ValueError):
              _ = JpegCompression(clip_values=(0, 1), quality=-1)
  
          with pytest.raises(ValueError):
              _ = JpegCompression(clip_values=(0, 1, 2))
  
          with pytest.raises(ValueError):
              _ = JpegCompression(clip_values=(0, 1), verbose="False")
  
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/defences/preprocessor/test_jpeg_compression.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 JpegCompression
  from tests.utils import ARTTestException
label_desc: Use image node_id 7 for calling a global function with example usage: test_check_params(art_warning) without return types