class_docstr: Spatial transformation attack
docstr:   Create a SpatialTransformationMethod instance.
    Note: the model parameter should be an instance of the
    cleverhans.model.Model abstraction provided by CleverHans.
  
  :param model: cleverhans.model.Model
  :param sess: optional tf.Session
  :param dtypestr: dtype of the data
  :param kwargs: passed through to super constructor
docstr_tok: ["Create","a","SpatialTransformationMethod","instance",".","Note",":","the","model","parameter","should","be","an","instance","of","the","cleverhans.model.Model","abstraction","provided","by","CleverHans",".",":","param","model",":","cleverhans.model.Model",":","param","sess",":","optional","tf.Session",":","param","dtypestr",":","dtype","of","the","data",":","param","kwargs",":","passed","through","to","super","constructor"]
code: def __init__(self, model, sess=None, dtypestr="float32", **kwargs):
      """
        Create a SpatialTransformationMethod instance.
        Note: the model parameter should be an instance of the
        cleverhans.model.Model abstraction provided by CleverHans.
  
      :param model: cleverhans.model.Model
      :param sess: optional tf.Session
      :param dtypestr: dtype of the data
      :param kwargs: passed through to super constructor
      """
  
      super(SpatialTransformationMethod, self).__init__(
          model, sess, dtypestr, **kwargs
      )
      self.feedable_kwargs = (
          "n_samples",
          "dx_min",
          "dx_max",
          "n_dxs",
          "dy_min",
          "dy_max",
          "n_dys",
          "angle_min",
          "angle_max",
          "n_angles",
          "black_border_size",
      )
  
imports: import warnings
  from cleverhans.attacks.attack import Attack
label_desc: Use image node_id 1 to create a new SpatialTransformationMethod object from inherited base classes: Attack with example: obj = SpatialTransformationMethod(model, sess, dtypestr)