          trainer: :file:`plugins.train.trainer` plugin
              The requested model trainer plugin
          """
          logger.debug("Running Training Cycle")
          if self._args.write_image or self._args.redirect_gui or self._args.preview:
              display_func: Optional[Callable] = self._show
          else:
              display_func = None
 
</s> remove     def get_trainer(name: str, disable_logging: bool = False) -> "TrainerBase":
 </s> add     def get_trainer(name: str, disable_logging: bool = False) -> Type["TrainerBase"]: </s> remove             if self._preview.should_refresh():
 </s> add             if self._preview.should_refresh or gui_triggers["refresh"] or update_preview_images: </s> remove                 self._preview.request_refresh()
 </s> add                 update_preview_images = True </s> remove             if self._preview.should_toggle_mask():
 </s> add             if self._preview.should_toggle_mask or gui_triggers["mask"]:
        update_preview_images = False
          trainer: :file:`plugins.train.trainer` plugin
              The requested model trainer plugin
          """
          logger.debug("Running Training Cycle")
        update_preview_images = False
          if self._args.write_image or self._args.redirect_gui or self._args.preview:
              display_func: Optional[Callable] = self._show
          else:
              display_func = None
keep keep keep add keep keep keep keep
 Training - Use custom preview pop-out 
scripts/train.py