  
  from ._base import Output, logger
  
  if TYPE_CHECKING:
      from imageio.plugins.pillowmulti import GIFFormat
  
  
  class Writer(Output):
      """ GIF output writer using imageio.
  
 
</s> remove from lib.align.alignments import _VERSION
 </s> add from lib.align.alignments import _VERSION, PNGHeaderDict </s> remove from typing import cast, Dict, List, Optional, TYPE_CHECKING, Union
 </s> add from typing import cast, Dict, List, Optional, Tuple, TYPE_CHECKING, Union </s> remove from typing import List, Optional, TYPE_CHECKING
 </s> add from typing import Dict, List, Optional, TYPE_CHECKING </s> remove from typing import Any, Dict, Generator, List, Optional, Tuple, TYPE_CHECKING, Union
 </s> add from typing import (Any, cast, Dict, Generator, Iterator, List,
                    Optional, Tuple, TYPE_CHECKING, Union) </s> remove     def _get_writer(self) -> "GIFFormat.Writer":
 </s> add     def _get_writer(self) -> "im_format.Format.Writer":
    from imageio.core import format as im_format  # noqa:F401
  
  from ._base import Output, logger
  
  if TYPE_CHECKING:
    from imageio.core import format as im_format  # noqa:F401
  
  
  class Writer(Output):
      """ GIF output writer using imageio.
  
keep keep keep keep replace keep keep keep keep keep
 tests:
  - unit test: tools.alignments.media
  - Add mypy test
  - Typing fixes 
plugins/convert/writer/gif.py