code: def test_squared_pairwise_distance(size, ft_size):
      """
      Test vectorize implementation of the squared pairwise distance
      """
      np.random.seed(0)
      X = np.random.randn(size, ft_size)
      Y = np.random.randn(size, ft_size)
  
      # compute the naive way
      dist1 = np.empty((size, size))
      for i in range(size):
          for j in range(size):
              dist1[i, j] = np.sum((X[i] - Y[j]) ** 2)
  
      dist2 = squared_pairwise_distance(X, Y)
      assert np.allclose(dist1, dist2)
  
file_path: alibi/alibi/prototypes/tests/test_utils.py
imports: import pytest
  import numpy
  from alibi.utils.distance import squared_pairwise_distance, batch_compute_kernel_matrix
  from alibi.utils.kernel import GaussianRBF, GaussianRBFDistance, EuclideanDistance
label_desc: Use image node_id 1 for calling a global function with example usage: test_squared_pairwise_distance(size, ft_size) without return types