code: def _argtop(y_score, k=None):
      
      # avoid sorting when just want the top all
      if k is None:
          return slice(0, len(y_score))
      else:
          return _argsort(y_score, k)
docs: Returns the indexes of the top k scores (not necessarily sorted)