code: def test_neightbours_in_2d(self):
      actual_result = sofm.find_neighbours_on_rect_grid(
          np.zeros((3, 3)), center=(0, 0), radius=1
      )
  
      expected_result = np.array(
          [[1.0, 1.0, 0.0], [1.0, 0.0, 0.0], [0.0, 0.0, 0.0]]
      )
      np.testing.assert_array_equal(actual_result, expected_result)
  
      actual_result = sofm.find_neighbours_on_rect_grid(
          np.zeros((5, 5)), center=(2, 2), radius=2
      )
  
      expected_result = np.array(
          [
              [0.0, 0.0, 1.0, 0.0, 0.0],
              [0.0, 1.0, 1.0, 1.0, 0.0],
              [1.0, 1.0, 1.0, 1.0, 1.0],
              [0.0, 1.0, 1.0, 1.0, 0.0],
              [0.0, 0.0, 1.0, 0.0, 0.0],
          ]
      )
      np.testing.assert_array_equal(actual_result, expected_result)
  
      actual_result = sofm.find_neighbours_on_rect_grid(
          np.zeros((3, 3)), center=(1, 1), radius=0
      )
  
      expected_result = np.array(
          [[0.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 0.0]]
      )
      np.testing.assert_array_equal(actual_result, expected_result)
  
imports: import math
  import numpy
  from neupy import algorithms
  from neupy.exceptions import WeightInitializationError
  from neupy.algorithms.competitive import sofm
  from neupy.algorithms.competitive.neighbours import gaussian_df
  from base import BaseTestCase
label_desc: Use image node_id 4 for calling the SOFMNeigboursTestCase obj's underlying member method code with example usage: obj.test_neightbours_in_2d() without return types