  """ Video output writer for faceswap.py converter """
  import os
  from math import ceil
  from subprocess import CalledProcessError, check_output, STDOUT
  from typing import Optional, List, Tuple, Generator
  
  import imageio
  import imageio_ffmpeg as im_ffm
  import numpy as np
  
 
</s> remove from typing import Optional, List, Tuple
 </s> add from typing import Optional, List, Tuple, TYPE_CHECKING </s> remove from tkinter import ttk
 </s> add from tkinter import PhotoImage, ttk
from typing import Any, Callable, cast, Dict, List, Optional, Tuple, TYPE_CHECKING, Union
from typing import cast, Generator, List, Optional, Tuple
  """ Video output writer for faceswap.py converter """
  import os
  from math import ceil
  from subprocess import CalledProcessError, check_output, STDOUT
from typing import cast, Generator, List, Optional, Tuple
  
  import imageio
  import imageio_ffmpeg as im_ffm
  import numpy as np
  
keep keep keep keep replace keep keep keep keep keep
 Bugfix: convert - Gif Writer
  - Fix non-launch error on Gif Writer
  - convert plugins - linting
  - convert/fs_media/preview/queue_manager - typing
  - Change convert items from dict to Dataclass 
plugins/convert/writer/ffmpeg.py