code: def __init__(
      self,
      program,
      input_name,
      logits_name,
      predict_name,
      cost_name,
      bounds,
      channel_axis=3,
      preprocess=None,
      window_size=None,
      channel_index=0,
  ):
      if preprocess is None:
          preprocess = (0, 1)
  
      super(PaddleSpatialSmoothingDefenceModel, self).__init__(
          program=program,
          input_name=input_name,
          logits_name=logits_name,
          predict_name=predict_name,
          cost_name=cost_name,
          bounds=bounds,
          channel_axis=channel_axis,
          preprocess=preprocess,
      )
  
      self.__window_size = window_size
      self.__channel_index = channel_index
  
file_path: AdvBox/adversarialbox/models/paddleSpatialSmoothingDefence.py
imports: from __future__ import absolute_import
  import sys
  import numpy
  import os
  import paddle.fluid
  from .base import Model
  from .paddle import PaddleModel
  from adversarialbox.defences.spatial_smoothing import SpatialSmoothingDefence
label_desc: Use image node_id 1 to create a new PaddleSpatialSmoothingDefenceModel object from inherited base classes: PaddleModel with example: obj = PaddleSpatialSmoothingDefenceModel(program, input_name, logits_name, predict_name, cost_name, bounds, channel_axis, preprocess, window_size, channel_index)