code: def test_chisquare_execution(setup):
      f_obs_raw = np.array([16, 18, 16, 14, 12, 12])
      f_exp_raw = np.array([16, 16, 16, 16, 16, 8])
  
      f_obs = tensor(f_obs_raw, chunk_size=4)
      f_exp = tensor(f_exp_raw, chunk_size=4)
  
      r = chisquare(f_obs, f_exp)
      result = r.execute().fetch()
  
      expected = sp_chisquare(f_obs_raw, f_exp_raw)
      np.testing.assert_almost_equal(expected[0], result[0])
      np.testing.assert_almost_equal(expected[1], result[1])
  
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 3 for calling a global function with example usage: test_chisquare_execution(setup) without return types