code: def test_invalid_insize(self):
      ksize = self.ksize
      stride = self.stride
      pad = self.pad
      outs = self.outsize
      cover_all = self.cover_all
  
      # Make input with invalid shape.
      dims = tuple(
          conv.get_conv_outsize(out, k, s, p, cover_all=cover_all)
          for (out, k, s, p) in zip(outs, ksize, stride, pad)
      )
      dims = tuple(d + 1 for d in dims)  # Make invalid input shape.
      x_shape = (self.N, self.c) + dims
      x_data = numpy.random.uniform(-1, 1, x_shape).astype(
          numpy.float32
      )
      x = chainer.Variable(x_data)
  
      # Computing unpooling raises exception.
      with self.assertRaises(type_check.InvalidType):
          functions.unpooling_nd(
              x, ksize, stride, pad, outsize=outs, cover_all=cover_all
          )
  
imports: import itertools
  import unittest
  import numpy
  import six
  import chainer
  from chainer import backend
  from chainer import functions
  from chainer import testing
  from chainer.utils import conv
  from chainer.utils import type_check
label_desc: Use image node_id 3 for calling the TestUnpoolingNDOutsize obj's underlying member method code with example usage: obj.test_invalid_insize() without return types