Introduction Machine learning is a tool in the AI toolbox that can be used for…