code: def __init__(self, apoolnd):
      self.func = apoolnd
  
imports: import functools
  import operator
  import numpy
  import six
  import chainer
  from chainer import backend
  from chainer.backends import cuda
  from chainer import function_node
  from chainer.functions.pooling import average_pooling_nd_kernel
  from chainer.functions.pooling import pooling_nd
  from chainer.utils import conv
  from chainer.utils import conv_nd
  import chainerx
label_desc: Use image node_id 1 to create a new AveragePoolingNDGrad object from inherited base classes: function_node with example: obj = AveragePoolingNDGrad(apoolnd)