text_plain_output_1.png
import pathlib

import random

import tensorflow as tf

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)

img = tf.read_file(all_paths)
img