code: def test_entropy_execution(setup):
      rs = np.random.RandomState(0)
      a = rs.rand(10)
  
      t1 = tensor(a, chunk_size=4)
      r = entropy(t1)
  
      result = r.execute().fetch()
      expected = sp_entropy(a)
      np.testing.assert_array_almost_equal(result, expected)
  
      b = rs.rand(10)
      base = 3.1
  
      t2 = tensor(b, chunk_size=4)
      r = entropy(t1, t2, base)
  
      result = r.execute().fetch()
      expected = sp_entropy(a, b, base)
      np.testing.assert_array_almost_equal(result, expected)
  
      b = rs.rand(10)
      base = 3.1
  
      t2 = tensor(b, chunk_size=4)
      r = entropy(t1, t2, base)
  
      result = r.execute().fetch()
      expected = sp_entropy(a, b, base)
      np.testing.assert_array_almost_equal(result, expected)
  
      r = entropy(t1, t2, t1.sum())
  
      result = r.execute().fetch()
      expected = sp_entropy(a, b, a.sum())
      np.testing.assert_array_almost_equal(result, expected)
  
      with pytest.raises(ValueError):
          entropy(t1, t2[:7])
  
file_path: mars/mars/tensor/stats/tests/test_stats_execution.py
imports: import functools
  import numpy
  import pytest
  import scipy
  from scipy.stats import entropy, power_divergence, chisquare, ks_1samp, ks_2samp, norm, ttest_rel, ttest_ind, ttest_ind_from_stats, ttest_1samp, rankdata
  from ....lib.version import parse
  from ...None import tensor
  from ..None import entropy, power_divergence, chisquare, ttest_ind, ttest_rel, ttest_1samp, ttest_ind_from_stats, ks_1samp, ks_2samp, rankdata
label_desc: Use image node_id 1 for calling a global function with example usage: test_entropy_execution(setup) without return types