  import sys
  import tkinter as tk
  
  from tkinter import ttk
  from typing import cast, Dict, Optional, Tuple, TYPE_CHECKING
  
  from .display_graph import TrainingGraph
  from .display_page import DisplayOptionalPage
  from .custom_widgets import Tooltip
  from .analysis import Calculations, Session
 
</s> remove from typing import cast, Dict, List, Optional, Sequence, Tuple, Union
 </s> add from typing import cast, Dict, List, Optional, Sequence, Tuple </s> remove from .augmentation import ImageAugmentation  # noqa
from .generator import PreviewDataGenerator, TrainingDataGenerator  # noqa
from .preview_cv import PreviewBuffer , TriggerType # noqa
 </s> add from .augmentation import ImageAugmentation
from .generator import PreviewDataGenerator, TrainingDataGenerator
from .preview_cv import PreviewBuffer, TriggerType </s> remove     from .preview_tk import PreviewTk as Preview  # noqa
 </s> add     from .preview_tk import PreviewTk as Preview
from typing import Dict, Optional, Tuple

from lib.training.preview_tk import PreviewTk
  import sys
  import tkinter as tk
  
  from tkinter import ttk
from typing import Dict, Optional, Tuple

from lib.training.preview_tk import PreviewTk
  
  from .display_graph import TrainingGraph
  from .display_page import DisplayOptionalPage
  from .custom_widgets import Tooltip
  from .analysis import Calculations, Session
keep keep keep keep replace keep keep keep keep keep
 GUI - Preview updates
  - Training preview. Embed preview pop-out window
  - Bugfix - convert/extract previews 
lib/gui/display_command.py