code: def test_uu_chi2():
      arr1 = np.array([1, 2, 0, 5])
      arr2 = np.array([3, 4, 0, 2])
  
      chi2_value, chi2_norm, z_score, p_value, res = uu_chi2(arr1, arr2)
  
      np.testing.assert_equal(len(res) + 1, arr1.shape[0])
      np.testing.assert_almost_equal(chi2_value, 2.9036, 4)
      np.testing.assert_almost_equal(chi2_norm, 1.45180, 4)
      np.testing.assert_almost_equal(z_score, 0.7252, 4)
      np.testing.assert_almost_equal(p_value, 0.2341, 4)
  
file_path: popmon/tests/popmon/analysis/comparison/test_comparisons.py
imports: import numpy
  import pytest
  from popmon.analysis.comparison.comparisons import jensen_shannon_divergence, ks_prob, ks_test, kullback_leibler_divergence, population_stability_index, uu_chi2
label_desc: Use image node_id 1 for calling a global function with example usage: test_uu_chi2() without return types