def get_next(self):
    if self.preprocess_flag:
        self.preprocess_flag = False
        nhwc_data_list = preprocess_func(self.image_folder, image_height, image_width, size_limit=0)
        self.datasize = len(nhwc_data_list)
        self.enum_data_dicts = iter([{'input_tensor:0': nhwc_data} for nhwc_data in nhwc_data_list])
    return next(self.enum_data_dicts, None)
def get_next(self):
    if self.preprocess_flag:
        self.preprocess_flag = False
        nhwc_data_list = preprocess_func(self.image_folder, image_height, image_width, size_limit=0)
        self.datasize = len(nhwc_data_list)
        self.enum_data_dicts = iter([{'input_tensor:0': nhwc_data} for nhwc_data in nhwc_data_list])
    return next(self.enum_data_dicts, None)