def _has_tag(Estimator, tag):
    """Check whether an Estimator has the given tag or not.

    Parameters
    ----------
    Estimator : Estimator class
    tag : str
        An Estimator tag like "skip-inverse-transform"

    Returns
    -------
    bool
    """
    # Check if tag is in all tags
    return Estimator._all_tags().get(tag, False)