code: def get_list_from_model(learn:Learner, ds_type:DatasetType, batch:Tuple)->[]:
          "Factory method to convert a batch of model images to a list of ModelImageSet."
          image_sets = []
          x,y = batch[0],batch[1]
          preds = learn.pred_batch(ds_type=ds_type, batch=(x,y), reconstruct=True)  
          for orig_px, real_px, gen in zip(x,y,preds):
              orig, real = Image(px=orig_px), Image(px=real_px)
              image_set = ModelImageSet(orig=orig, real=real, gen=gen)
              image_sets.append(image_set)
          return image_setf get_list_from_model(learn:Learner, ds_type:DatasetType, batch:Tuple)->[]:
          "Factory method to convert a batch of model images to a list of ModelImageSet."
          image_sets = []
          x,y = batch[0],batch[1]
          preds = learn.pred_batch(ds_type=ds_type, batch=(x,y), reconstruct=True)  
          for orig_px, real_px, gen in zip(x,y,preds):
              orig, real = Image(px=orig_px), Image(px=real_px)
              image_set = ModelImageSet(orig=orig, real=real, gen=gen)
              image_sets.append(image_set)
          return image_sets
docs: Factory method to convert a batch of model images to a list of ModelImageSet.