How to find best model using python in mlflow

User16826994223
Databricks Employee
Databricks Employee

I have a use case in mlflow with python code to find a model version that has the best metric (for instance, “accuracy”) among so many versions , I don't want to use web ui but to use python code to achieve this. Any Idea?