  import sys
  
  from threading import Lock
  from time import sleep
  from typing import cast, Callable, Dict, List, Optional, TYPE_CHECKING
  
  import cv2
  import numpy as np
  
  from lib.image import read_image_meta
 
</s> remove from lib.utils import (get_folder, get_image_paths, FaceswapError, _image_extensions)
 </s> add from lib.utils import get_dpi, get_folder, get_image_paths, FaceswapError, _image_extensions </s> remove     def get_optional_arguments():
 </s> add     def get_optional_arguments() -> List[Dict[str, Any]]: </s> remove     def get_argument_list():
 </s> add     def get_argument_list() -> List[Dict[str, Any]]:
from typing import cast, Callable, Dict, List, Optional, Tuple, TYPE_CHECKING
  import sys
  
  from threading import Lock
  from time import sleep
from typing import cast, Callable, Dict, List, Optional, Tuple, TYPE_CHECKING
  
  import cv2
  import numpy as np
  
  from lib.image import read_image_meta
keep keep keep keep replace keep keep keep keep keep
 Live Preview - Replace cv2 with matplotlib viewer 
scripts/train.py