code: def emit_Pool(self, IR_node):
      pooling_type = IR_node.get_attr("pooling_type")
      if IR_node.layer.attr["global_pooling"].b:
          if pooling_type == "AVG":
              self.add_body(
                  1,
                  "{:15} = helper.make_node('GlobalAveragePool', inputs=['{}'], outputs=['{}'], name='{}')".format(
                      IR_node.variable_name,
                      self.parent_variable_name(IR_node),
                      IR_node.variable_name,
                      IR_node.variable_name,
                  ),
              )
              self.nodes.append(IR_node.variable_name)
          else:
              print(
                  "OnnxEmitter has not supported Global Pool type [%s]."
                  % (pooling_type)
              )
              self.emit_UNKNOWN(IR_node)
      else:
          if pooling_type in ["AVG", "MAX"]:
              if pooling_type == "AVG":
                  op_name = "AveragePool"
              elif pooling_type == "MAX":
                  op_name = "MaxPool"
              kernel_shape = list(
                  IR_node.get_attr("kernel_shape")[1:-1]
              )
              pads = IR_node.get_attr("pads")
              pad_length = len(pads)
              pads = (
                  pads[1 : pad_length // 2 - 1]
                  + pads[pad_length // 2 + 1 : pad_length - 1]
              )
              strides = list(IR_node.get_attr("strides")[1:-1])
              self.add_body(
                  1,
                  "{:15} = helper.make_node('{}', inputs=['{}'],outputs=['{}'], kernel_shape={}, pads={}, strides={}, name='{}')".format(
                      IR_node.variable_name,
                      op_name,
                      self.parent_variable_name(IR_node),
                      IR_node.variable_name,
                      kernel_shape,
                      pads,
                      strides,
                      IR_node.variable_name,
                  ),
              )
              self.nodes.append(IR_node.variable_name)
          else:
              print(
                  "OnnxEmitter has not supported Pool type [%s]."
                  % (pooling_type)
              )
              self.emit_UNKNOWN(IR_node)
  
imports: from mmdnn.conversion.common.DataStructure.emitter import Emitter
  from mmdnn.conversion.common.IR.IR_graph import IRGraph
  import os.path
  import mmdnn.conversion.common.IR.graph_pb2
  import numpy
  import sys
label_desc: Use image node_id 13 for calling the OnnxEmitter obj's underlying member method code with example usage: obj.emit_Pool(IR_node) without return types