original_docstring: 
      Take in a dictionary of parameters and applies attack-specific checks
      before saving them as attributes.
      
docstring: Take in a dictionary of parameters and applies attack-specific checks
  before saving them as attributes.
docstring_tokens: Take in a dictionary of parameters and applies attack - specific checks before saving them as attributes .
code: def parse_params(self,
                     th,
                     es,
                     targeted,
                     verbose,
                     **kwargs):
      """
      Take in a dictionary of parameters and applies attack-specific checks
      before saving them as attributes.
      """
      self.th = th
      self.es = es
      self.targeted = targeted
      self.verbose = verbose
  
      if self.th is not None:
        if self.th <= 0:
          raise ValueError(
              'The perturbation size `eps` has to be positive.')
      if not isinstance(self.es, int):
        raise ValueError('The flag `es` has to be of type int.')
      if not isinstance(self.targeted, bool):
        raise ValueError('The flag `targeted` has to be of type bool.')
      if not isinstance(self.verbose, bool):
        raise ValueError('The flag `verbose` has to be of type bool.')
  
      return True
code_tokens: def parse_params ( self , th , es , targeted , verbose , ** kwargs ) : self . th = th self . es = es self . targeted = targeted self . verbose = verbose if self . th is not None : if self . th <= 0 : raise ValueError ( 'The perturbation size `eps` has to be positive.' ) if not isinstance ( self . es , int ) : raise ValueError ( 'The flag `es` has to be of type int.' ) if not isinstance ( self . targeted , bool ) : raise ValueError ( 'The flag `targeted` has to be of type bool.' ) if not isinstance ( self . verbose , bool ) : raise ValueError ( 'The flag `verbose` has to be of type bool.' ) return True
short_docstring: Take in a dictionary of parameters and applies attack-specific checks
  before saving them as attributes.
short_docstring_tokens: Take in a dictionary of parameters and applies attack - specific checks before saving them as attributes .
comment: """
      Take in a dictionary of parameters and applies attack-specific checks
      before saving them as attributes.
      """