          logger.verbose("%s - %sMB free of %sMB",
                         self._vram_stats["device"],
                         self._vram_stats["vram_free"],
                         self._vram_stats["vram_total"])
          if self._vram_stats["vram_free"] <= self._total_vram_required:
              logger.warning("Not enough free VRAM for parallel processing. "
                             "Switching to serial")
              return False
          return True
  
 
</s> remove         logger.verbose("%s - %sMB free of %sMB",
 </s> add         logger.verbose("%s - %sMB free of %sMB",  # type: ignore </s> remove     def _set_phases(self, multiprocess):
 </s> add     def _set_phases(self, multiprocess: bool) -> List[List[str]]: </s> remove     def _check_and_raise_error(self):
 </s> add     def _check_and_raise_error(self) -> bool: </s> remove         if plugins_required + batch_required <= self._vram_stats["vram_free"]:
 </s> add         if plugins_required + batch_required <= cast(int, self._vram_stats["vram_free"]): </s> remove         retval = dict(count=gpu_stats.device_count,
                      device=stats["device"],
                      vram_free=int(stats["free"] - vram_buffer),
                      vram_total=int(stats["total"]))
 </s> add         retval: Dict[str, Union[int, str]] = dict(count=gpu_stats.device_count,
                                                  device=stats["device"],
                                                  vram_free=int(stats["free"] - vram_buffer),
                                                  vram_total=int(stats["total"]))
        if cast(int, self._vram_stats["vram_free"]) <= self._total_vram_required:
          logger.verbose("%s - %sMB free of %sMB",
                         self._vram_stats["device"],
                         self._vram_stats["vram_free"],
                         self._vram_stats["vram_total"])
        if cast(int, self._vram_stats["vram_free"]) <= self._total_vram_required:
              logger.warning("Not enough free VRAM for parallel processing. "
                             "Switching to serial")
              return False
          return True
  
keep keep keep keep replace keep keep keep keep keep
 extract: Add batch processing mode 
plugins/extract/pipeline.py