code: def get_checkerboard_matrix(kernel_width):
  
      
  
      return np.vstack((
          np.hstack((
              -1 * np.ones((kernel_width, kernel_width)), np.ones((kernel_width, kernel_width))
          )),
          np.hstack((
              np.ones((kernel_width, kernel_width)), -1 * np.ones((kernel_width, kernel_width))
          ))
      ))
docs: example matrix for width = 2
  
      -1  -1    1   1
      -1  -1    1   1
       1   1   -1  -1
       1   1   -1  -1
  
      :param kernel_width:
      :return: