code: def test_batch_compute_kernel_matrix(
      size, ft_size, batch_size, kernel
  ):
      """
      Test Euclidean distance kernel implementation
      """
      X = np.random.randn(size, ft_size)
      Y = np.random.randn(size, ft_size)
  
      kmatrix1 = kernel(X, Y)
      kmatrix2 = batch_compute_kernel_matrix(
          X, Y, kernel=kernel, batch_size=batch_size
      )
      assert np.allclose(kmatrix1, kmatrix2)
  
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 5 for calling a global function with example usage: test_batch_compute_kernel_matrix(size, ft_size, batch_size, kernel) without return types