class_docstr: A unittest class for testing Spatial attack.
class_docstr_tok: ["A","unittest","class","for","testing","Spatial","attack","."]
code: def test_check_params(self):
      ptc = get_image_classifier_pt(from_logits=True)
  
      with self.assertRaises(ValueError):
          _ = SpatialTransformation(ptc, max_translation=-1)
  
      with self.assertRaises(ValueError):
          _ = SpatialTransformation(ptc, num_translations=-1)
  
      with self.assertRaises(ValueError):
          _ = SpatialTransformation(ptc, max_rotation=-1)
  
      with self.assertRaises(ValueError):
          _ = SpatialTransformation(ptc, verbose="False")
  
file_path: adversarial-robustness-toolbox/tests/attacks/test_spatial_transformation.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import unittest
  import keras.backend
  import numpy
  from art.attacks.evasion.spatial_transformation import SpatialTransformation
  from art.estimators.estimator import BaseEstimator, NeuralNetworkMixin
  from tests.utils import TestBase
  from tests.utils import get_image_classifier_tf, get_image_classifier_kr
  from tests.utils import get_image_classifier_pt, get_tabular_classifier_kr
  from tests.attacks.utils import backend_test_classifier_type_check_fail
label_desc: Use image node_id 6 for calling the TestSpatialTransformation obj's underlying member method code with example usage: obj.test_check_params() without return types