code: def _mwu_choose_method(n1, n2, xy, method):
      """Choose method 'asymptotic' or 'exact' depending on input size, ties"""
  
      # if both inputs are large, asymptotic is OK
      if n1 > 8 and n2 > 8:
          return "asymptotic"
  
      # if there are any ties, asymptotic is preferred
      if np.apply_along_axis(_tie_check, -1, xy).any():
          return "asymptotic"
  
      return "exact"
  
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 6 for calling a global function with example usage: _mwu_choose_method(n1, n2, xy, method) and returns: str, str, str