If you're interested in this, be sure to read "The ML Test Score: A Rubric for ML Production Readiness and Technical Debt Reduction" [1] and the Rules of Machine Learning [2].
[1] https://ai.google/research/pubs/pub46555
[2] https://developers.google.com/machine-learning/rules-of-ml/