code: def test_check_params(art_warning):
      try:
          with pytest.raises(ValueError):
              _ = MixupPyTorch(num_classes=0)
  
          with pytest.raises(ValueError):
              _ = MixupPyTorch(num_classes=10, alpha=0)
  
          with pytest.raises(ValueError):
              _ = MixupPyTorch(num_classes=10, alpha=-1)
  
          with pytest.raises(ValueError):
              _ = MixupPyTorch(num_classes=10, num_mix=1)
  
          with pytest.raises(ValueError):
              _ = MixupPyTorch(num_classes=10, num_mix=-1)
  
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/defences/preprocessor/mixup/test_mixup_pytorch.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, assert_array_almost_equal
  from art.config import ART_NUMPY_DTYPE
  from art.defences.preprocessor import MixupPyTorch
  from tests.utils import ARTTestException
label_desc: Use image node_id 6 for calling a global function with example usage: test_check_params(art_warning) without return types