  import sys
  import os
  
  from hashlib import sha1
  from typing import Dict, List, TYPE_CHECKING
  
  from zlib import compress, decompress
  
  import cv2
  import numpy as np
  
 
</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
from typing import Callable, Dict, List, Optional, Tuple, TYPE_CHECKING, Union
  import sys
  import os
  
  from hashlib import sha1
from typing import Callable, Dict, List, Optional, Tuple, TYPE_CHECKING, Union
from typing import Callable, Dict, List, Optional, Tuple, TYPE_CHECKING, Union
  from zlib import compress, decompress
  
  import cv2
  import numpy as np
  
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/detected_face.py