In the modern day world we live in, machine learning is becoming ubiquitous and is increasingly finding applications in…