code: def test_euclidean_2():
      """test that the euclidean distance is as expected"""
      nx = 10
      X = np.random.randn(nx, 2)
      ED = ed(X)
      ref = np.zeros((nx, nx))
      for i in range(nx):
          ref[i] = np.sqrt(np.sum((X - X[i]) ** 2, 1))
  
      assert_almost_equal(ED, ref)
  
imports: import numpy
  from numpy.testing import assert_almost_equal
  from ..fast_distance import euclidean_distance
label_desc: Use image node_id 2 for calling a global function with example usage: test_euclidean_2() without return types