def get_img(data_path): # Getting image array from path: img = imread(data_path) img = imresize(img, (64, 64)) return img