code: def _get_wilcoxon_distr(n):
      """
      Distribution of counts of the Wilcoxon ranksum statistic r_plus (sum of
      ranks of positive differences).
      Returns an array with the counts/frequencies of all the possible ranks
      r = 0, ..., n*(n+1)/2
      """
      cnt = _wilcoxon_data.COUNTS.get(n)
  
      if cnt is None:
          raise ValueError(
              "The exact distribution of the Wilcoxon test "
              "statistic is not implemented for n={}".format(n)
          )
  
      return np.array(cnt, dtype=int)
  
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 6 for calling a global function with example usage: _get_wilcoxon_distr(n) and returns: np