code: def get_chisq_statistic(f_obs: np.array, f_ref: np.array) -> float:
      """
      Returns the Chi-Square test statistic, a measure that determines the
      statistical significant difference between two frequencies.
      https://en.wikipedia.org/wiki/Chi-squared_test
  
      :param f_obs: Frequencies of the observed probability distribution.
      :type f_obs: np.array
      :param f_ref: Frequencies of the reference probability distribution.
      :type f_ref: np.array
      :return: The Chi-Square test statistic between the frequencies of the
          two probability distributions.
      :rtype: float
      """
      res = scipy.stats.chisquare(f_obs, f_ref)
      chisq: float = res[0]
      return chisq
  
file_path: responsible-ai-toolbox/responsibleai/responsibleai/databalanceanalysis/distribution_balance_measures.py
imports: from typing import Callable, Dict, List
  import numpy
  import pandas
  import scipy
  from responsibleai.databalanceanalysis.balance_measures import BalanceMeasures
  from responsibleai.databalanceanalysis.constants import Constants, Measures
label_desc: Use image node_id 7 for calling a global function with example usage: get_chisq_statistic(f_obs, f_ref) and returns: chisq