Machine Learning (ML) is a subfield of artificial intelligence (AI) that involves the development of algorithms and statistical models allowing…