def METHOD_NAME():
    # get the latest images from the generated images folder
    # get the path to the generated images folder
    generatedImagesPath = os.path.join(os.getcwd(), "outputs")
    # get all the files from the folders and subfolders
    files = []
    # get the laest 10 images from the output folder without walking the subfolders
    for r, d, f in os.walk(generatedImagesPath):
        for file in f:
            if ".png" in file:
                files.append(os.path.join(r, file))
    # sort the files by date
    files.sort(key=os.path.getmtime)
    # reverse the list so the latest images are first
    for f in files:
        img = Image.open(f)
        files[files.index(f)] = img
    # get the latest 10 files
    # get all the files with the .png or .jpg extension
    # sort files by date
    # get the latest 10 files
    latestFiles = files[-10:]
    # reverse the list
    latestFiles.reverse()
    return latestFiles