Validates feature format, raising error if invalid.

def _validate_feature_format(self, feature_format):
        """Validates feature format, raising error if invalid."""

        if feature_format not in self.valid_feature_formats:
            raise InvalidFeatureFormatError(
                "{} is not a valid feature format".format(feature_format)
            )

        return feature_format