code: def test_cosine_distances_execution(setup, raw_x, raw_y, chunk_size):
      x = mt.tensor(raw_x, chunk_size=chunk_size)
      y = mt.tensor(raw_y, chunk_size=chunk_size)
  
      d = cosine_distances(x, y)
  
      result = d.execute().fetch()
      expected = sk_cosine_distances(raw_x, raw_y)
  
      np.testing.assert_almost_equal(np.asarray(result), expected)
  
      d = cosine_distances(x)
  
      result = d.execute().fetch()
      expected = sk_cosine_distances(raw_x)
  
      np.testing.assert_almost_equal(np.asarray(result), expected)
  
imports: import numpy
  import scipy.sparse
  import pytest
  from sklearn.metrics.pairwise import cosine_distances
  from .....None import tensor
  from ..None import cosine_distances
label_desc: Use image node_id 1 for calling a global function with example usage: test_cosine_distances_execution(setup, raw_x, raw_y, chunk_size) without return types