def METHOD_NAME(list_image_path, list_label=None, is_test=False):
    def reader():
        IMG_EXTENSIONS = ('.jpg', '.jpeg', '.png', '.ppm', '.bmp', '.pgm',
                          '.tif', '.tiff', '.webp')
        target_size = 256
        crop_size = 224
        for i, img_path in enumerate(list_image_path):
            if not img_path.lower().endswith(IMG_EXTENSIONS):
                continue
            img = cv2.imread(img_path)
            if img is None:
                logging.info(img_path)
                continue
            img = resize_short(img, target_size, interpolation=None)
            img = crop_image(img, crop_size, center=is_test)
            img = img[:, :, ::-1]
            img_show = np.expand_dims(img, axis=0)
            img = preprocess_image(img_show, not is_test)
            label = 0 if list_label is None else list_label[i]
            yield img_show, img, label
    return reader