class_docstr: Allows to create stack layers for a given network.
class_docstr_tok: ["Allows","to","create","stack","layers","for","a","given","network","."]
docstr: Creates a new max pooling layer.
  :param name: name for the layer.
  :param kernel_size: tuple containing the size of the kernel (Width, Height)
  :param stride_size: tuple containing the size of the stride (Width, Height)
  :param padding: Type of padding. Available values are: ('SAME', 'VALID')
  :param input_layer_name: name of the input layer for this layer. If None, it will take the last added layer of
  the network.
docstr_tok: ["Creates","a","new","max","pooling","layer",".",":","param","name",":","name","for","the","layer",".",":","param","kernel_size",":","tuple","containing","the","size","of","the","kernel","(","Width",",","Height",")",":","param","stride_size",":","tuple","containing","the","size","of","the","stride","(","Width",",","Height",")",":","param","padding",":","Type","of","padding",".","Available","values","are",":","(","'SAME","'",",","'VALID","'",")",":","param","input_layer_name",":","name","of","the","input","layer","for","this","layer",".","If","None",",","it","will","take","the","last","added","layer","of","the","network","."]
code: def new_max_pool(
      self,
      name: str,
      kernel_size: tuple,
      stride_size: tuple,
      padding="SAME",
      input_layer_name: str = None,
  ):
      """
      Creates a new max pooling layer.
      :param name: name for the layer.
      :param kernel_size: tuple containing the size of the kernel (Width, Height)
      :param stride_size: tuple containing the size of the stride (Width, Height)
      :param padding: Type of padding. Available values are: ('SAME', 'VALID')
      :param input_layer_name: name of the input layer for this layer. If None, it will take the last added layer of
      the network.
      """
  
      self.__validate_padding(padding)
  
      input_layer = self.__network.get_layer(input_layer_name)
  
      output = tf.nn.max_pool2d(
          input=input_layer,
          ksize=[1, kernel_size[1], kernel_size[0], 1],
          strides=[1, stride_size[1], stride_size[0], 1],
          padding=padding,
          name=name,
      )
  
      self.__network.add_layer(name, layer_output=output)
  
file_path: mtcnn/mtcnn/layer_factory.py
imports: import tensorflow
  from distutils.version import LooseVersion
label_desc: Use image node_id 9 for calling the LayerFactory obj's underlying member method code with example usage: obj.new_max_pool(name, kernel_size, stride_size, padding, input_layer_name) without return types