def get_feature_out(estimator, feature_in):
    """
    Returns estimator features out if it has get_feature_names method, else features_in
    """
    if hasattr(estimator, 'get_feature_names'):
        return estimator.get_feature_names(), estimator.categories_
    else:
        return feature_in, []