code: def rename_Pooling(self, source_node):
      IR_node = self._convert_identity_operation(
          source_node, new_op="Pool"
      )
      dim = len(IR_node.attr["_output_shapes"].list.shape[0].dim)
      kwargs = {}
  
      # strides
      kwargs["strides"] = list(source_node.get_attr("strides")) + [1]
      if len(kwargs["strides"]) < dim:
          kwargs["strides"] = [1] + kwargs["strides"]
  
      # window_shape
      kwargs["kernel_shape"] = list(
          source_node.get_attr("poolingWindowShape")
      ) + [1]
      if len(kwargs["kernel_shape"]) < dim:
          kwargs["kernel_shape"] = [1] + kwargs["kernel_shape"]
  
      # pool type
      pool_type = source_node.get_attr("poolingType")
      if pool_type == _cntk.MAX_POOLING:
          kwargs["pooling_type"] = "MAX"
      elif pool_type == _cntk.AVG_POOLING:
          kwargs["pooling_type"] = "AVG"
      else:
          raise ValueError(
              "Unknown pooling type [{}].".format(pool_type)
          )
  
      # padding
      padding = source_node.get_attr("autoPadding")
      if len(padding) >= dim - 1:
          padding = padding[1:]
      elif len(padding) < dim - 2:
          padding.extend([padding[-1]] * (dim - len(padding) - 2))
      for pad in padding:
          assert pad == padding[-1]
      kwargs["auto_pad"] = "SAME_LOWER" if padding[0] else "VALID"
      kwargs["pads"] = self._convert_padding_to_IR(
          kwargs["kernel_shape"][1:-1], padding
      )
  
      assign_IRnode_values(IR_node, kwargs)
  
imports: import os
  import numpy
  from six.moves import xrange
  import cntk
  from mmdnn.conversion.cntk.cntk_graph import CntkGraph
  import mmdnn.conversion.common.IR.graph_pb2
  from mmdnn.conversion.common.IR.graph_pb2 import NodeDef, GraphDef, DataType
  from mmdnn.conversion.common.utils import *
  from mmdnn.conversion.common.DataStructure.parser import Parser
label_desc: Use image node_id 26 for calling the CntkParser obj's underlying member method code with example usage: obj.rename_Pooling(source_node) without return types