code: def chi2(*args, max_res_bound=7.0):
      chi2r, chi2_norm, zscore, pvalue, res = uu_chi2(*args)
      abs_residual = np.abs(res)
      chi2_max_residual = np.max(abs_residual)
      chi2_spike_count = np.sum(
          abs_residual[abs_residual > max_res_bound]
      )
  
      return (
          chi2r,
          chi2_norm,
          zscore,
          pvalue,
          chi2_max_residual,
          chi2_spike_count,
      )
  
file_path: popmon/popmon/analysis/comparison/comparisons.py
imports: import numpy
  from scipy import stats
  from popmon.base.registry import Registry
label_desc: Use image node_id 11 for calling a global function with example usage: chi2() and returns: chi2r,  chi2_norm,  zscore,  pvalue,  chi2_max_residual,  chi2_spike_count