code: def test_neibs_manual_step(self):
      shape = (2, 3, 5, 5)
      for dtype in self.dtypes:
          images = shared(
              np.asarray(
                  np.arange(np.prod(shape)).reshape(shape), dtype=dtype
              )
          )
          neib_shape = T.as_tensor_variable((3, 3))
          neib_step = T.as_tensor_variable((2, 2))
          for border in ["valid", "ignore_borders"]:
              f = function(
                  [],
                  images2neibs(
                      images, neib_shape, neib_step, mode=border
                  ),
                  mode=self.mode,
              )
  
              neibs = f()
              assert self.op in [
                  type(node.op) for node in f.maker.fgraph.toposort()
              ]
  
              assert np.allclose(
                  neibs,
                  [
                      [0, 1, 2, 5, 6, 7, 10, 11, 12],
                      [2, 3, 4, 7, 8, 9, 12, 13, 14],
                      [10, 11, 12, 15, 16, 17, 20, 21, 22],
                      [12, 13, 14, 17, 18, 19, 22, 23, 24],
                      [25, 26, 27, 30, 31, 32, 35, 36, 37],
                      [27, 28, 29, 32, 33, 34, 37, 38, 39],
                      [35, 36, 37, 40, 41, 42, 45, 46, 47],
                      [37, 38, 39, 42, 43, 44, 47, 48, 49],
                      [50, 51, 52, 55, 56, 57, 60, 61, 62],
                      [52, 53, 54, 57, 58, 59, 62, 63, 64],
                      [60, 61, 62, 65, 66, 67, 70, 71, 72],
                      [62, 63, 64, 67, 68, 69, 72, 73, 74],
                      [75, 76, 77, 80, 81, 82, 85, 86, 87],
                      [77, 78, 79, 82, 83, 84, 87, 88, 89],
                      [85, 86, 87, 90, 91, 92, 95, 96, 97],
                      [87, 88, 89, 92, 93, 94, 97, 98, 99],
                      [100, 101, 102, 105, 106, 107, 110, 111, 112],
                      [102, 103, 104, 107, 108, 109, 112, 113, 114],
                      [110, 111, 112, 115, 116, 117, 120, 121, 122],
                      [112, 113, 114, 117, 118, 119, 122, 123, 124],
                      [125, 126, 127, 130, 131, 132, 135, 136, 137],
                      [127, 128, 129, 132, 133, 134, 137, 138, 139],
                      [135, 136, 137, 140, 141, 142, 145, 146, 147],
                      [137, 138, 139, 142, 143, 144, 147, 148, 149],
                  ],
              )
  
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 3 for calling the T_Images2Neibs obj's underlying member method code with example usage: obj.test_neibs_manual_step() without return types