Practical Guide to Machine Learning, NLP, and Generative AI: Libraries, Algorithms, and Applications