              logger.trace("Submitting: '%s'", item[0])
              executor.submit(self._save, *item)
          executor.shutdown()
  
      def _save(self, filename, image):
          """ Save a single image inside a ThreadPoolExecutor
  
          Parameters
          ----------
          filename: str
 
</s> remove     def save(self, filename, image):
 </s> add     def save(self, filename: str, image: bytes, sub_folder: Optional[str] = None) -> None: </s> remove             logger.trace("Saved image: '%s'", filename)
 </s> add             logger.trace("Saved image: '%s'", filename)  # type:ignore </s> remove             The filename of the image to be saved
        image: numpy.ndarray
            The image to be saved
 </s> add             The filename of the image to be saved. NB: Any folders passed in with the filename
            will be stripped and replaced with :attr:`location`.
        image: bytes
            The encoded image to be saved
        subfolder: str, optional
            If the file should be saved in a subfolder in the output location, the subfolder should
            be provided here. ``None`` for no subfolder. Default: ``None`` </s> remove         image: numpy.ndarray
            The image to be saved
 </s> add         image: bytes
            The encoded image to be saved
        subfolder: str or ``None``
            If the file should be saved in a subfolder in the output location, the subfolder should
            be provided here. ``None`` for no subfolder.
    def _save(self, filename: str, image: bytes, sub_folder: Optional[str]) -> None:
              logger.trace("Submitting: '%s'", item[0])
              executor.submit(self._save, *item)
          executor.shutdown()
  
    def _save(self, filename: str, image: bytes, sub_folder: Optional[str]) -> None:
          """ Save a single image inside a ThreadPoolExecutor
  
          Parameters
          ----------
          filename: str
keep keep keep keep replace keep keep keep keep keep
 Extract filter: Allow saving of filtered images 
lib/image.py