          """
          logger.debug("Getting size: '%s'", name)
          if not self._previewtrain.get(name, None):
              return None
          img = self._previewtrain[name][1]
          if not img:
              return None
          logger.debug("Got size: (name: '%s', width: '%s', height: '%s')",
                       name, img.width(), img.height())
          return img.width(), img.height()
 
</s> remove         if not self._previewtrain.get(name, None):
 </s> add         if not self._previewtrain.get(name): </s> remove     def resize_image(self, name, frame_dims):
 </s> add     def resize_image(self, name: str, frame_dims: Tuple[int, int]): </s> remove             return None
 </s> add             return [] </s> remove         kwargs = dict(master=self._dummy_master)
 </s> add         kwargs: Dict[str, Union[None, tk.Frame, str,
                                List[Tuple[str, str]]]] = dict(master=self._dummy_master)
        img = cast(Image.Image, self._previewtrain[name][1])
          """
          logger.debug("Getting size: '%s'", name)
          if not self._previewtrain.get(name, None):
              return None
        img = cast(Image.Image, self._previewtrain[name][1])
          if not img:
              return None
          logger.debug("Got size: (name: '%s', width: '%s', height: '%s')",
                       name, img.width(), img.height())
          return img.width(), img.height()
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/utils.py