code: def before(self):
      # 2D: T maxval = (T)-INFINITY;
      #     int argmax_0 = 0;
      #     int argmax_1 = 0;
      def aux(argmax):
          return "int {} = 0;".format(argmax)
  
      self.argmaxs = conv_nd_kernel.vars("argmax", self.ndim)
      argmax_decls = conv_nd_kernel.map_(aux, self.argmaxs)
      return "\n".join(["T maxval = (T)-(1.0/0.0);"] + argmax_decls)
  
imports: import six
  from chainer.functions.pooling import pooling_nd_kernel
  from chainer.utils import conv_nd_kernel
label_desc: Use image node_id 3 for calling the MaxPoolingNDKernelForward obj's underlying member method code with example usage: obj.before() and returns: str, str