  
  if TYPE_CHECKING:
      from argparse import Namespace
      from lib.align.aligned_face import CenteringType
      from lib.align.alignments import AlignmentFileDict, PNGHeaderDict, PNGHeaderSourceDict
      from lib.queue_manager import EventQueue
  
  logger = logging.getLogger(__name__)  # pylint:disable=invalid-name
  
  
 
</s> remove from typing import Any, cast, Dict, List, Optional, Tuple, TYPE_CHECKING, Union
 </s> add from typing import cast, List, Optional, Tuple, TYPE_CHECKING, Union </s> remove             if not metadata.get("source_frame_dims"):
 </s> add             if "source_frame_dims" not in metadata.get("source", {}):
    from lib.align.alignments import AlignmentFileDict, PNGHeaderDict
  
  if TYPE_CHECKING:
      from argparse import Namespace
      from lib.align.aligned_face import CenteringType
    from lib.align.alignments import AlignmentFileDict, PNGHeaderDict
      from lib.queue_manager import EventQueue
  
  logger = logging.getLogger(__name__)  # pylint:disable=invalid-name
  
  
keep keep keep keep replace keep keep keep keep keep
 bugfix: Mask tool, fix faces input type 
tools/mask/mask.py