          else:
              logger.trace(item)  # type:ignore
          return exhausted, batch
  
      # <<< FINALIZE METHODS>>> #
      def finalize(self, batch: BatchType) -> Generator[ExtractMedia, None, None]:
          """ Finalize the output from Detector
 
</s> remove from .actions import (DirFullPaths, DirOrFileFullPaths, FileFullPaths, FilesFullPaths, MultiOption,
                      Radio, SaveFileFullPaths, Slider)
 </s> add from .actions import (DirFullPaths, DirOrFileFullPaths, DirOrFilesFullPaths, FileFullPaths,
                      FilesFullPaths, MultiOption, Radio, SaveFileFullPaths, Slider) </s> remove                          filter_files: Optional[Union[str, List[str]]],
                         nfilter_files: Optional[Union[str, List[str]]]) -> Tuple[List[str],
                                                                                  List[str]]:
 </s> add                          filter_files: Optional[List[str]],
                         nfilter_files: Optional[List[str]]) -> Tuple[List[str], List[str]]: </s> remove             raise ValueError("nargs must be provided for FilesFullPaths: {}".format(opt))
 </s> add             raise ValueError(f"nargs must be provided for FilesFullPaths: {opt}") </s> remove             raise ValueError("nargs not allowed for ContextFullPaths: {}".format(opt))
 </s> add             raise ValueError(f"nargs not allowed for ContextFullPaths: {opt}") </s> remove             filt_files = [files] if isinstance(files, str) else files
            filt_files = [] if filt_files is None else filt_files
 </s> add             if isinstance(files, list) and len(files) == 1 and os.path.isdir(files[0]):
                # Get images from folder, if folder passed in
                dirname = files[0]
                files = [os.path.join(dirname, fname)
                         for fname in os.listdir(dirname)
                         if os.path.splitext(fname)[-1].lower() in _image_extensions]
                logger.debug("Collected files from folder '%s': %s", dirname,
                             [os.path.basename(f) for f in files])

            filt_files = [] if files is None else files
        if not exhausted and not batch.filename:
            # This occurs when face filter is fed aligned faces.
            # Need to re-run until EOF is hit
            return self.get_batch(queue)

          else:
              logger.trace(item)  # type:ignore
        if not exhausted and not batch.filename:
            # This occurs when face filter is fed aligned faces.
            # Need to re-run until EOF is hit
            return self.get_batch(queue)

          return exhausted, batch
  
      # <<< FINALIZE METHODS>>> #
      def finalize(self, batch: BatchType) -> Generator[ExtractMedia, None, None]:
          """ Finalize the output from Detector
keep add keep keep keep keep keep
 Face-filter updates:
  - Allow selecting folder as well as multiple images
  - Lower default threshold and update helptext
  - bugfix: detector error when using all aligned faces
  - Standardize output folder name 
plugins/extract/detect/_base.py