  :mod:`~plugins.extract.mask` Plugins
  """
  import logging
  
  from tensorflow.python.framework import errors_impl as tf_errors
  
  from lib.multithreading import MultiThread
  from lib.queue_manager import queue_manager
  from lib.utils import GetModel, FaceswapError
  from ._config import Config
 
</s> remove from lib.utils import get_folder
 </s> add from lib.utils import get_folder, _video_extensions </s> remove from typing import List, Dict, TYPE_CHECKING, Optional
 </s> add from argparse import Namespace
from typing import List, Dict, Optional </s> remove from lib.queue_manager import queue_manager, QueueEmpty
 </s> add from lib.queue_manager import EventQueue, queue_manager, QueueEmpty </s> remove from typing import cast, List, Optional, Tuple, TYPE_CHECKING
 </s> add from typing import cast, Dict, Generator, List, Optional, Tuple, TYPE_CHECKING, Union
from tensorflow.python.framework import errors_impl as tf_errors  # pylint:disable=no-name-in-module  # noqa
  :mod:`~plugins.extract.mask` Plugins
  """
  import logging
  
from tensorflow.python.framework import errors_impl as tf_errors  # pylint:disable=no-name-in-module  # noqa
  
  from lib.multithreading import MultiThread
  from lib.queue_manager import queue_manager
  from lib.utils import GetModel, FaceswapError
  from ._config import Config
keep keep keep keep replace keep keep keep keep keep
 extract: Add batch processing mode 
plugins/extract/_base.py