code: def test_col2im_nd_gpu_parameter_ranks(self):
      # Invalid ksize length.
      col_shape = (2, 3) + (2,) + self.outs
      col = numpy.random.uniform(-1, 1, col_shape).astype(numpy.float32)
      col_gpu = cuda.to_gpu(col)
      with self.assertRaises(AssertionError):
          conv_nd.col2im_nd_gpu(
              col_gpu, self.stride, self.pad, self.dims
          )
  
      col_gpu = cuda.to_gpu(self.col)
  
      # Invalid stride length.
      with self.assertRaises(AssertionError):
          conv_nd.col2im_nd_gpu(col_gpu, (1,), self.pad, self.dims)
  
      # Invalid pad length.
      with self.assertRaises(AssertionError):
          conv_nd.col2im_nd_gpu(col_gpu, self.stride, (0,), self.dims)
  
      # Invalid dims length.
      with self.assertRaises(AssertionError):
          conv_nd.col2im_nd_gpu(col_gpu, self.stride, self.pad, (4,))
  
imports: import itertools
  import unittest
  import numpy
  from six import moves
  from chainer.backends import cuda
  from chainer import testing
  from chainer.testing import attr
  from chainer.utils import conv_nd
label_desc: Use image node_id 3 for calling the TestCol2ImNDParameterRanks obj's underlying member method code with example usage: obj.test_col2im_nd_gpu_parameter_ranks() without return types