'Checks if a control connection feature is enabled. These features can be
enabled using :func:`~stem.control.Controller.enable_feature`.
:param str feature: feature to be checked
:returns: **True** if feature is enabled, **False** otherwise'

def is_feature_enabled(self, feature):

    feature = feature.upper()
    if (feature in self._enabled_features):
        return True
    else:
        defaulted_version = None
        if (feature == 'EXTENDED_EVENTS'):
            defaulted_version = stem.version.Requirement.FEATURE_EXTENDED_EVENTS
        elif (feature == 'VERBOSE_NAMES'):
            defaulted_version = stem.version.Requirement.FEATURE_VERBOSE_NAMES
        if defaulted_version:
            our_version = self.get_version(None)
            if (our_version and (our_version >= defaulted_version)):
                self._enabled_features.append(feature)
        return (feature in self._enabled_features)
