code: def generate(klass, ndim):
      return klass()._generate(ndim)
  
imports: from six import moves
  from chainer.backends import cuda
  from chainer.utils import conv_nd_kernel
label_desc: Use image node_id 7 for calling the PoolingNDKernelBackward obj's underlying member method code with example usage: obj.generate(klass, ndim) and returns: klass