text_html_output_1.png
from IPython.core.display import Image

from IPython.display import display

import pathlib

import random

train_images_path = '../input/train_images'
test_images_path = '../input/test_images'

root_path = pathlib.Path(train_images_path)
for item in root_path.iterdir():
    break

all_paths = list(root_path.glob('*.png'))
all_paths[0]

all_paths = [str(path) for path in all_paths]
random.shuffle(all_paths)

for n in range(3):
    image_path = random.choice(all_paths)
    print(image_path)
    display(Image(image_path, width=300, height=300))