code: def _darknet_avgpooling(inputs, params, attrs, prefix):
      """Process the average pool 2d operation."""
      new_attrs = {}
      kernel = attrs.get("kernel")
      strides = attrs.get("stride", 1)
      pads = attrs.get("pad", 0)
  
      new_attrs["pool_size"] = (kernel, kernel)
      new_attrs["strides"] = (strides, strides)
      new_attrs["padding"] = (pads, pads)
      return get_relay_op("avg_pool2d")(*inputs, **new_attrs)
  
imports: from enum import Enum
  import numpy
  import tvm
  from tvm.ir import IRModule
  from ..None import analysis
  from ..None import expr
  from ..None import function
  from .common import get_relay_op, new_var
label_desc: Use image node_id 6 for calling a global function with example usage: _darknet_avgpooling(inputs, params, attrs, prefix) and returns: get_relay_op