def chi2test(data, pop_var, alternative='two-sided'): ...