code: def test_ks_1samp(setup, chunk_size, mode, alternative):
      x = tensor(np.linspace(-15, 15, 9), chunk_size=5)
  
      result = ks_1samp(x, sp_norm.cdf, mode=mode).execute().fetch()
      expected = sp_ks_1samp(x, sp_norm.cdf, mode=mode)
      assert result == expected
  
      with pytest.raises(ValueError):
          ks_1samp(x, sp_norm.cdf, alternative="unknown")
  
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 5 for calling a global function with example usage: test_ks_1samp(setup, chunk_size, mode, alternative) without return types