src/transformers/onnx/features.py/FeaturesManager/get_model_from_feature
class FeaturesManager:    def get_model_from_feature(feature: str, model: str):
        """
        Attempt to retrieve a model from a model's name and the feature to be enabled.

        Args:
            feature: The feature required
            model: The name of the model to export

        Returns:

        """
        task = FeaturesManager.feature_to_task(feature)
        if task not in FeaturesManager._TASKS_TO_AUTOMODELS:
            raise KeyError(
                f"Unknown task: {feature}."
                f"Possible values are {list(FeaturesManager._TASKS_TO_AUTOMODELS.values())}"
            )

        return FeaturesManager._TASKS_TO_AUTOMODELS[task].from_pretrained(model)