def load_img_and_label(fp): return PILImage.create(fp), parent_label(fp) load_img_and_label(fpath)