code: def _tie_term(ranks):
      """Tie correction term"""
      # element i of t is the number of elements sharing rank i
      _, t = np.unique(ranks, return_counts=True, axis=-1)
      return (t**3 - t).sum(axis=-1)
  
file_path: catboost/contrib/python/scipy/py3/scipy/stats/_mannwhitneyu.py
imports: import numpy
  from dataclasses import make_dataclass
  from collections import namedtuple
  from scipy import special
  from scipy import stats
label_desc: Use image node_id 2 for calling a global function with example usage: _tie_term(ranks) and returns: unknown