code: def test_chisquare():
      # Test replacement for scipy.stats.chisquare against the original.
      obs = np.array([[2.0, 2.0], [1.0, 1.0]])
      exp = np.array([[1.5, 1.5], [1.5, 1.5]])
      # call SciPy first because our version overwrites obs
      chi_scp, p_scp = scipy.stats.chisquare(obs, exp)
      chi_our, p_our = _chisquare(obs, exp)
  
      assert_array_almost_equal(chi_scp, chi_our)
      assert_array_almost_equal(p_scp, p_our)
  
file_path: scikit-learn/sklearn/feature_selection/tests/test_chi2.py
imports: import warnings
  import numpy
  import pytest
  import scipy.stats
  from sklearn.feature_selection import SelectKBest, chi2
  from sklearn.feature_selection._univariate_selection import _chisquare
  from sklearn.utils._testing import assert_array_almost_equal, assert_array_equal
  from sklearn.utils.fixes import COO_CONTAINERS, CSR_CONTAINERS
label_desc: Use image node_id 6 for calling a global function with example usage: test_chisquare() without return types