Can somebody explain me this method? CNN Keras - starter
def ReadImages(Path):  #path to dir with all images
    LabelList = list() #Initialized empty labels list
    ImageCV = list()   #Initialized empty ImageCV list initialized
    classes = ["nonPdr", "pdr"]  #classes labels all image files startwith
    #return list of image folders in main dir path/
    FolderList = [f for f in os.listdir(Path) if not f.startswith('.')]

    #loop over dir of image folders
    for File in FolderList:
        #for loop returns index of each image in a image folder 
        #and the image name
        for index, Image in enumerate(os.listdir(os.path.join(Path, File))):
            #Read image file resize it and append it to ImageCv list
            ImageCV.append(cv2.resize(cv2.imread(os.path.join(Path, File) + os.path.sep + Image), (224,224)))
            #return string of characters before dot 1 in file name 
            #return index from classes !!!dangerous line assumes all files 
            #of form nonPdr.* or pdr.*
            #append that index value either 1 or 0 to libelist
            LabelList.append(classes.index(os.path.splitext(File)[0]))  
            print(FolderList) # print the folder just parsed
    return ImageCV, LabelList # return the two list created at the start
    #now containing images and labels based on names of image files