code: def omni_normtest(resids, axis=0):
      """
      Omnibus test for normality
  
      Parameters
      ----------
      resid : array_like
      axis : int, optional
          Default is 0
  
      Returns
      -------
      Chi^2 score, two-tail probability
      """
      # TODO: change to exception in summary branch and catch in summary()
      #   behavior changed between scipy 0.9 and 0.10
      resids = np.asarray(resids)
      n = resids.shape[axis]
      if n < 8:
          from warnings import warn
  
          warn(
              "omni_normtest is not valid with less than 8 observations; %i "
              "samples were given." % int(n),
              ValueWarning,
          )
          return np.nan, np.nan
  
      return stats.normaltest(resids, axis=axis)
  
file_path: statsmodels/statsmodels/stats/stattools.py
imports: from scipy import stats
  import numpy
  from statsmodels.tools.sm_exceptions import ValueWarning
label_desc: Use image node_id 2 for calling a global function with example usage: omni_normtest(resids, axis) and returns: stats, np,  np