code: def test_haversine_distances_execution(setup, x, y, use_sklearn):
      distance = haversine_distances(x, y)
      distance.op._use_sklearn = use_sklearn
  
      result = distance.execute().fetch()
      expected = sk_haversine_distances(raw_x, raw_y)
      np.testing.assert_almost_equal(result, expected)
  
      # test x is y
      distance = haversine_distances(x)
      distance.op._use_sklearn = use_sklearn
  
      result = distance.execute().fetch()
      expected = sk_haversine_distances(raw_x, raw_x)
      np.testing.assert_almost_equal(result, expected)
  
imports: import numpy
  import pytest
  from sklearn.metrics.pairwise import haversine_distances
  from .....None import tensor
  from ..None import haversine_distances
label_desc: Use image node_id 2 for calling a global function with example usage: test_haversine_distances_execution(setup, x, y, use_sklearn) without return types