class_docstr: A unittest class for testing the Pixel Attack.
  
  This module tests the Pixel Attack.
  The Pixel Attack is a generalisation of One Pixel Attack.
  
  | One Pixel Attack Paper link:
      https://ieeexplore.ieee.org/abstract/document/8601309/citations#citations
      (arXiv link: https://arxiv.org/pdf/1710.08864.pdf)
  | Pixel Attack Paper link:
      https://arxiv.org/abs/1906.06026
class_docstr_tok: ["A","unittest","class","for","testing","the","Pixel","Attack",".","This","module","tests","the","Pixel","Attack",".","The","Pixel","Attack","is","a","generalisation","of","One","Pixel","Attack",".","|","One","Pixel","Attack","Paper","link",":","https",":","\/\/ieeexplore.ieee.org\/abstract\/document\/8601309\/citations","#","citations","(","arXiv","link",":","https",":","\/\/arxiv.org\/pdf\/1710.08864.pdf",")","|","Pixel","Attack","Paper","link",":","https",":","\/\/arxiv.org\/abs\/1906.06026"]
code: def test_check_params(self):
      ptc = get_image_classifier_pt(from_logits=True)
  
      with self.assertRaises(ValueError):
          _ = PixelAttack(ptc, th=-1)
  
      with self.assertRaises(ValueError):
          _ = PixelAttack(ptc, es=1.0)
  
      with self.assertRaises(ValueError):
          _ = PixelAttack(ptc, targeted="true")
  
      with self.assertRaises(ValueError):
          _ = PixelAttack(ptc, verbose="true")
  
      with self.assertRaises(ValueError):
          ptc._clip_values = None
          _ = PixelAttack(ptc)
  
file_path: adversarial-robustness-toolbox/tests/attacks/test_pixel_attack.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import unittest
  import numpy
  from art.attacks.evasion.pixel_threshold import PixelAttack
  from art.estimators.estimator import BaseEstimator, NeuralNetworkMixin
  from art.estimators.classification.classifier import ClassifierMixin
  from tests.utils import TestBase
  from tests.utils import get_image_classifier_tf, get_image_classifier_pt
  from tests.attacks.utils import backend_test_classifier_type_check_fail
label_desc: Use image node_id 6 for calling the TestPixelAttack obj's underlying member method code with example usage: obj.test_check_params() without return types