def _find_feature_type(self, feature_name, eopatch):
        """ Iterates over allowed feature types of given EOPatch and tries to find a feature type for which there
        exists a feature with given name

        :return: A feature type or `None` if such feature type does not exist
        :rtype: FeatureType or None
        """
        for feature_type in self.allowed_feature_types:
            if feature_type.has_dict() and feature_name in eopatch[feature_type]:
                return feature_type
        return None
Iterates over allowed feature types of given EOPatch and tries to find a feature type for which there
        exists a feature with given name

        :return: A feature type or `None` if such feature type does not exist
        :rtype: FeatureType or None