                                os.path.splitext(os.path.basename(input_location))[0])
          logger.debug("Returning output: '%s' for input: '%s'", retval, input_location)
          return retval
  
      def _get_extractor(self) -> Optional[Extractor]:
          """ Obtain a Mask extractor plugin and launch it
  
          Returns
          -------
          :class:`plugins.extract.pipeline.Extractor`:
              The launched Extractor
 
</s> remove         Returns
        -------
        :class:`plugins.extract.pipeline.Extractor`:
            The launched Extractor
 </s> add         In some instances, batch-mode memory leaks. Launching each job in a separate process
        prevents this leak.

        Parameters
        ----------
        arguments: :class:`argparse.Namespace`
            The :mod:`argparse` arguments to be used for the given job </s> remove         if self._args.processing == "output":
            logger.debug("Update type `output` selected. Not launching extractor")
            return None
        logger.debug("masker: %s", self._args.masker)
        extractor = Extractor(None, None, self._args.masker, exclude_gpus=self._args.exclude_gpus)
        logger.debug(extractor)
        return extractor
 </s> add         logger.debug("Starting process: (arguments: %s)", arguments)
        mask = _Mask(arguments)
        mask.process()
        logger.debug("Finished process: (arguments: %s)", arguments) </s> remove     extractor: :class:`plugins.extract.pipeline.Extractor`:
            The launched Extractor
 </s> add  </s> remove     def __init__(self, arguments: Namespace, extractor: Optional[Extractor]) -> None:
        logger.debug("Initializing %s: (arguments: %s, extractor: %s)",
                     self.__class__.__name__, arguments, extractor)
 </s> add     def __init__(self, arguments: Namespace) -> None:
        logger.debug("Initializing %s: (arguments: %s)", self.__class__.__name__, arguments) </s> remove         extractor = self._get_extractor()
 </s> add 
    @staticmethod
    def _run_mask_process(arguments: Namespace) -> None:
        """ The mask process to be run in a spawned process.
                                os.path.splitext(os.path.basename(input_location))[0])
          logger.debug("Returning output: '%s' for input: '%s'", retval, input_location)
          return retval
  
    @staticmethod
    def _run_mask_process(arguments: Namespace) -> None:
        """ The mask process to be run in a spawned process.
    @staticmethod
    def _run_mask_process(arguments: Namespace) -> None:
        """ The mask process to be run in a spawned process.
  
          Returns
          -------
          :class:`plugins.extract.pipeline.Extractor`:
              The launched Extractor
keep keep keep keep replace replace keep keep keep keep keep
 bugfix: mask tool memory leak in batch-mode 
tools/mask/mask.py