  """ Plugin loader for Faceswap extract, training and convert tasks """
  
  import logging
  import os
  from importlib import import_module
  from typing import Callable, List, Type, TYPE_CHECKING
  
  if TYPE_CHECKING:
 
</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 </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.utils import get_folder
 </s> add from lib.utils import get_folder, _video_extensions </s> remove from tensorflow.python.framework import errors_impl as tf_errors
 </s> add from tensorflow.python.framework import errors_impl as tf_errors  # pylint:disable=no-name-in-module  # noqa
import sys
  """ Plugin loader for Faceswap extract, training and convert tasks """
  
  import logging
  import os
import sys
  from importlib import import_module
  from typing import Callable, List, Type, TYPE_CHECKING
  
  if TYPE_CHECKING:
keep keep keep add keep keep keep keep
 extract: Add batch processing mode 
plugins/plugin_loader.py