import matplotlib.pyplot as plt

def show(test_images, idx, title):
    plt.figure()
    img = test_images[idx].reshape(28, 28)
    print(img.shape, img.dtype)
    plt.axis("off")
    plt.title(title)
    plt.imshow(img)
    plt.show()
5250c1f582a46d57021cbc3bdf5eda3a147fa0bc
<mask token>

<mask token>


def show(test_images, idx, title):
    plt.figure()
    img = test_images[idx].reshape(28, 28)
    print(img.shape, img.dtype)
    plt.axis('off')
    plt.title(title)
    plt.imshow(img)
    plt.show()

import matplotlib.pyplot as plt


def show(test_images, idx, title):
    plt.figure()
    img = test_images[idx].reshape(28, 28)
    print(img.shape, img.dtype)
    plt.axis('off')
    plt.title(title)
    plt.imshow(img)
    plt.show()

import matplotlib.pyplot as plt

def show(test_images, idx, title):
    plt.figure()
    img = test_images[idx].reshape(28, 28)
    print(img.shape, img.dtype)
    plt.axis("off")
    plt.title(title)
    plt.imshow(img)
    plt.show()