  import cv2
  import numpy as np
  from fastcluster import linkage, linkage_vector
  
  from lib.model.layers import L2_normalize
  from lib.model.session import KSession
 
</s> remove import psutil
 </s> add import sys

from typing import Dict, Generator, List, Tuple, Optional </s> remove import numpy as np
import cv2
 </s> add  </s> remove from concurrent import futures
from shutil import copyfile
from typing import List
 </s> add from shutil import copyfile, rmtree
from typing import List, Optional, TYPE_CHECKING </s> remove from lib.serializer import get_serializer_from_filename
from lib.align import AlignedFace, DetectedFace
from lib.image import FacesLoader, read_image, read_image_meta_batch
from lib.utils import FaceswapError
from plugins.extract.recognition.vgg_face2_keras import VGGFace2 as VGGFace
from plugins.extract.pipeline import Extractor, ExtractMedia
 </s> add from lib.serializer import Serializer, get_serializer_from_filename
from lib.utils import deprecation_warning

from .sort_methods import SortBlur, SortColor, SortFace, SortHistogram, SortMultiMethod
from .sort_methods_aligned import SortDistance, SortFaceCNN, SortPitch, SortSize, SortYaw

if TYPE_CHECKING:
    from .sort_methods import SortMethod </s> remove import operator
 </s> add 
import psutil
  import cv2
  import numpy as np
import psutil
  from fastcluster import linkage, linkage_vector
  
  from lib.model.layers import L2_normalize
  from lib.model.session import KSession
keep add keep keep keep keep
 Overhaul sort:
  - Standardize image data reading and writing
  - Optimize loading (just one pass required)
  - Make all sort groups binnable (to greater or lesser results)
  - Add sort by pitch
  - Deprecate multiple options
  - linting, docs + locales 
plugins/extract/recognition/vgg_face2_keras.py