code: def pool(
      self,
      pool_type,
      input,
      k_h,
      k_w,
      s_h,
      s_w,
      ceil_mode,
      padding,
      name,
  ):
      # Get the number of channels in the input
      in_hw = input.shape[2:]
      k_hw = [k_h, k_w]
      s_hw = [s_h, s_w]
  
      fluid = import_fluid()
      output = fluid.layers.pool2d(
          name=name,
          input=input,
          pool_size=k_hw,
          pool_stride=s_hw,
          pool_padding=padding,
          ceil_mode=ceil_mode,
          pool_type=pool_type,
      )
      return output
  
imports: from __future__ import print_function
  from builtins import str
  from past.builtins import basestring
  from builtins import object
  import sys
  import os
  import math
  import numpy
label_desc: Use image node_id 12 for calling the Network obj's underlying member method code with example usage: obj.pool(pool_type, input, k_h, k_w, s_h, s_w, ceil_mode, padding, name) and returns: output