def _check_wts(weights, wts):
    """helper function for deprecating `wts`
    """
    if wts is not None:
        import warnings
        warnings.warn('`wts` method is deprecated. Use `weights` instead',
            DeprecationWarning)
    weights = weights if weights is not None else wts
    return weights
