Extracts the best workflows from a nested list of model workflows based on the provided best model names.
get_best_workflows(models, best_model_name)A named list of workflows corresponding to the best engine for each algorithm. Each list element is named in the format "algorithm (engine)".
A nested list of model workflows. Each element should correspond to an algorithm and contain sublists keyed by engine names.
A named character vector where the names represent algorithm names and the values represent the chosen best engine for each algorithm.
The function iterates over each element in best_model_name and attempts to extract the corresponding workflow from models using the specified engine. If the workflow for an algorithm-engine pair is not found, a warning is issued and NULL is returned for that entry.