Machine Learning and AI in Modern Astronomy: A Review of Methods, Applications, Challenges, and a Reproducible Case Study | Synapse