code: def test_neibs_half_with_inconsistent_borders(self):
      shape = (2, 3, 5, 5)
      images = T.dtensor4()
      images_val = np.arange(np.prod(shape), dtype="float32").reshape(
          shape
      )
  
      f = theano.function(
          [images],
          T.sqr(images2neibs(images, (2, 2), mode="half")),
          mode=self.mode,
      )
      self.assertRaises(TypeError, f, images_val)
  
imports: from __future__ import absolute_import, print_function, division
  import numpy
  import unittest
  import theano
  from theano import shared, function
  import theano.tensor
  from theano.tensor.nnet.neighbours import images2neibs, neibs2images, Images2Neibs
  from theano.tests import unittest_tools
  from theano import change_flags
label_desc: Use image node_id 16 for calling the T_Images2Neibs obj's underlying member method code with example usage: obj.test_neibs_half_with_inconsistent_borders() without return types