code: def rename_Avgpool(self, source_node):
      attr = source_node.attrs
      kwargs = dict()
      kwargs["strides"] = [1] + attr["strides"] + [1]
      if "dilations" not in attr:
          kwargs["dilations"] = [1] + [1, 1] + [1]
      else:
          kwargs["dilations"] = [1] + attr["dilations"] + [1]
      if "pads" in attr:
          kwargs["pads"] = (
              [0] + attr["pads"][0:2] + [0, 0] + attr["pads"][2:] + [0]
          )
      else:
          kwargs["pads"] = [0, 0, 0, 0, 0, 0, 0, 0]
      kwargs["kernel_shape"] = [1] + attr["kernel_shape"] + [1]
      IR_node = self._convert_identity_operation(
          source_node, new_op="Pool"
      )
  
      kwargs["pooling_type"] = "AVG"
  
      assign_IRnode_values(IR_node, kwargs)
  
imports: import os
  import numpy
  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
  from mmdnn.conversion.pytorch.pytorch_graph import PytorchGraph040
  from mmdnn.conversion.pytorch.pytorch_graph import PytorchGraph151
  import torch
  import torchvision
label_desc: Use image node_id 17 for calling the PytorchParser obj's underlying member method code with example usage: obj.rename_Avgpool(source_node) without return types