Returns the indexes of the top k scores (not necessarily sorted)

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