def get_best_candidate_by_execution_provider(
        self, execution_provider: Union[ExecutionProvider, str]
    ) -> Optional[ModelOutput]:
        """Get the best model output for this accelerator based on metrics."""
        model_outputs = self._ep_model_map.get(execution_provider)
        return self._sort_by_metrics(model_outputs, self._objective_dict)[0] if model_outputs else None
Get the best model output for this accelerator based on metrics.
olive/engine/output.py