  
  from lib.serializer import get_serializer, get_serializer_from_filename
  from lib.utils import FaceswapError
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  _VERSION = 2.2
  
  
  # VERSION TRACKING
  # 1.0 - Never really existed. Basically any alignments file prior to version 2.0
  # 2.0 - Implementation of full head extract. Any alignments version below this will have used
 
</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 </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
if sys.version_info < (3, 8):
    from typing_extensions import TypedDict
else:
    from typing import TypedDict
  
  from lib.serializer import get_serializer, get_serializer_from_filename
  from lib.utils import FaceswapError
  
if sys.version_info < (3, 8):
    from typing_extensions import TypedDict
else:
    from typing import TypedDict
if sys.version_info < (3, 8):
    from typing_extensions import TypedDict
else:
    from typing import TypedDict
  
  
  # VERSION TRACKING
  # 1.0 - Never really existed. Basically any alignments file prior to version 2.0
  # 2.0 - Implementation of full head extract. Any alignments version below this will have used
keep keep keep keep replace replace keep keep keep keep keep
 lib.align updates:
  - alignments.py
    - Add typed dicts for imported alignments
    - Explicitly check for presence of thumb value in alignments dict
    - linting
  - detected_face.py
    - Typing
    - Linting
    - Legacy support for pre-aligned face
    - Update dependencies to new property names 
lib/align/alignments.py