  import numpy as np
  
  from tensorflow.python.framework import errors_impl as tf_errors  # pylint:disable=no-name-in-module # noqa
  
  from lib.utils import get_backend, FaceswapError
  from plugins.extract._base import BatchType, Extractor, ExtractMedia, ExtractorBatch
  from .processing import AlignedFilter, ReAlign
  
  if sys.version_info < (3, 8):
      from typing_extensions import Literal
 
</s> remove from lib.utils import get_backend, FaceswapError
 </s> add from lib.utils import FaceswapError </s> remove from lib.utils import get_backend, FaceswapError
 </s> add from lib.utils import FaceswapError </s> remove from ._base import KerasModel, ModelBase, get_all_sub_models
 </s> add from ._base import ModelBase, get_all_sub_models </s> remove from lib.utils import FaceswapError, get_backend
 </s> add from lib.utils import FaceswapError
from lib.utils import FaceswapError
  import numpy as np
  
  from tensorflow.python.framework import errors_impl as tf_errors  # pylint:disable=no-name-in-module # noqa
  
from lib.utils import FaceswapError
  from plugins.extract._base import BatchType, Extractor, ExtractMedia, ExtractorBatch
  from .processing import AlignedFilter, ReAlign
  
  if sys.version_info < (3, 8):
      from typing_extensions import Literal
keep keep keep keep replace keep keep keep keep keep
 Remove plaidML support (#1325)

* Remove PlaidML reference from readme files

* Remove AMD option from installers

* remove amd requirements and update setup.py

* remove plaidml test from CI workflow

* gpustats: remove plaidml backend

* plaid removals:
  - faceswap.py - python version check
  - setup.cfg - plaidml typing ignore
  - lib.keras_utils - All plaid code
  - lib.launcher.py - All plaidml checks and configuration

* remove tf2.2 specific code from GUI event reader

* lib.model - remove all plaidml implementations

* plugins.extract - remove plaidml code

* plugins.train remove plaidml code

* lib.convert - remove plaidml code

* tools.model: remove plaidml code

* Remove plaidML tests from unit tests

* remove plaidml_utils and docsting cleanups

* Remove plaidML refs from configs

* fix keras imports 
plugins/extract/align/_base/aligner.py