class_docstr: Implement the pixel defence approach. Defense based on PixelCNN that projects samples back to the data manifold.
  
  | Paper link: https://arxiv.org/abs/1710.10766
  
  | Please keep in mind the limitations of defences. For more information on the limitations of this defence,
      see https://arxiv.org/abs/1802.00420 . For details on how to evaluate classifier security in general, see
      https://arxiv.org/abs/1902.06705
code: def _check_params(self) -> None:
      if (
          not isinstance(self.eps, int)
          or self.eps < 0
          or self.eps > 255
      ):
          raise ValueError(
              "The defense parameter must be between 0 and 255."
          )
  
      from art.estimators.classification.classifier import (
          ClassifierMixin,
      )
      from art.estimators.estimator import NeuralNetworkMixin
  
      if hasattr(self, "pixel_cnn") and not (
          isinstance(self.pixel_cnn, ClassifierMixin)
          and isinstance(self.pixel_cnn, NeuralNetworkMixin)
      ):
          raise TypeError("PixelCNN model must be of type Classifier.")
  
      if np.array(self.clip_values[0] >= self.clip_values[1]).any():
          raise ValueError("Invalid `clip_values`: min >= max.")
  
      if self.clip_values[0] != 0:
          raise ValueError("`clip_values` min value must be 0.")
  
      if self.clip_values[1] != 1:
          raise ValueError("`clip_values` max value must be 1.")
  
      if self.batch_size <= 0:
          raise ValueError(
              "The batch size `batch_size` has to be positive."
          )
  
      if not isinstance(self.verbose, bool):
          raise ValueError(
              "The argument `verbose` has to be of type bool."
          )
  
file_path: adversarial-robustness-toolbox/art/defences/preprocessor/pixel_defend.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  from typing import Optional, Tuple, TYPE_CHECKING
  import numpy
  from tqdm.auto import tqdm
  from art.config import ART_NUMPY_DTYPE
  from art.defences.preprocessor.preprocessor import Preprocessor
label_desc: Use image node_id 3 for calling the PixelDefend obj's underlying member method code with example usage: obj._check_params() without return types