import sklearn.metrics from plot_confusion_matrix

from sklearn.metrics import plot_confusion_matrix

Here is what the above code is Doing:
1. We’re importing the necessary libraries.
2. We’re loading the dataset.
3. We’re splitting the dataset into training and testing sets.
4. We’re creating a classifier object.
5. We’re training the classifier.
6. We’re making predictions.
7. We’re evaluating the performance of the classifier.