image_display( image of is displayed as followsdigit keys(nowwe need to create the training and testing data set and supply testing data set to the knn classifiers train_xdigit['data'][: train_y digit['target'][: knn kneighborsclassifier( knn fit(train_x,train_ythe following output will create the nearest neighbor classifier constructorkneighborsclassifier(algorithm='auto'leaf_size= metric='minkowski'metric_params=nonen_jobs= n_neighbors= = weights='uniform'we need to create the testing sample by providing any arbitrary number greater than which were the training samples test np array(digit['data'][ ]test test reshape( ,- image_display(