Building a Robust Machine Learning Pipeline: Best Practices and Common Pitfalls