code: def _Aij(A, i, j):
      """Sum of upper-left and lower right blocks of contingency table."""
      # See [2] bottom of page 309
      return A[:i, :j].sum() + A[i + 1 :, j + 1 :].sum()
  
imports: from collections import namedtuple
  from dataclasses import make_dataclass
  import numpy
  import warnings
  from itertools import combinations
  import scipy.stats
  from scipy.optimize import shgo
  from .None import distributions
  from ._continuous_distns import chi2, norm
  from scipy.special import gamma, kv, gammaln
  from .None import _wilcoxon_data
label_desc: Use image node_id 7 for calling a global function with example usage: _Aij(A, i, j) and returns: unknown