          """
          monkeypatch.setattr("lib.utils._FS_BACKEND", "cpu")
  
          event_parse = event_parser_instance
          event_parse._parse_outputs = cast(MagicMock, mocker.MagicMock())  # type:ignore
          event_parse._process_event = cast(MagicMock, mocker.MagicMock())  # type:ignore
          event_parse._cache.cache_data = cast(MagicMock, mocker.MagicMock())  # type:ignore
  
          # keras model
          monkeypatch.setattr(event_parse,
                              "_iterator",
                              iter([self._create_example_event(0, 1., time())]))
 
</s> remove     configs_instance._parse_ini = cast(MagicMock, mocker.MagicMock())  # type:ignore
    configs_instance._parse_json = cast(MagicMock,  mocker.MagicMock())  # type:ignore
 </s> add     configs_instance._parse_ini = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
    configs_instance._parse_json = T.cast(MagicMock,  mocker.MagicMock())  # type:ignore </s> remove     model._download_model = cast(MagicMock, mocker.MagicMock())  # type:ignore
    model._unzip_model = cast(MagicMock, mocker.MagicMock())  # type:ignore
 </s> add     model._download_model = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
    model._unzip_model = T.cast(MagicMock, mocker.MagicMock())  # type:ignore </s> remove         f_display._crop_source_faces = cast(MagicMock, mocker.MagicMock())  # type:ignore
        f_display._crop_destination_faces = cast(MagicMock, mocker.MagicMock())  # type:ignore
 </s> add         f_display._crop_source_faces = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
        f_display._crop_destination_faces = T.cast(MagicMock, mocker.MagicMock())  # type:ignore </s> remove         f_display._faces_from_frames = cast(MagicMock, mocker.MagicMock())  # type:ignore
        f_display._header_text = cast(  # type:ignore
 </s> add         f_display._faces_from_frames = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
        f_display._header_text = T.cast(  # type:ignore </s> remove         faces.get_faces = cast(MagicMock, mocker.MagicMock())  # type:ignore
 </s> add         faces.get_faces = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
        event_parse._parse_outputs = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
        event_parse._process_event = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
        event_parse._cache.cache_data = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
          """
          monkeypatch.setattr("lib.utils._FS_BACKEND", "cpu")
  
          event_parse = event_parser_instance
        event_parse._parse_outputs = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
        event_parse._process_event = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
        event_parse._cache.cache_data = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
        event_parse._parse_outputs = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
        event_parse._process_event = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
        event_parse._cache.cache_data = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
        event_parse._parse_outputs = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
        event_parse._process_event = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
        event_parse._cache.cache_data = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
  
          # keras model
          monkeypatch.setattr(event_parse,
                              "_iterator",
                              iter([self._create_example_event(0, 1., time())]))
keep keep keep keep replace replace replace keep keep keep keep keep
 Rebase code (#1326)

* Remove tensorflow_probability requirement

* setup.py - fix progress bars

* requirements.txt: Remove pre python 3.9 packages

* update apple requirements.txt

* update INSTALL.md

* Remove python<3.9 code

* setup.py - fix Windows Installer

* typing: python3.9 compliant

* Update pytest and readthedocs python versions

* typing fixes

* Python Version updates
  - Reduce max version to 3.10
  - Default to 3.10 in installers
  - Remove incompatible 3.11 tests

* Update dependencies

* Downgrade imageio dep for Windows

* typing: merge optional unions and fixes

* Updates
  - min python version 3.10
  - typing to python 3.10 spec
  - remove pre-tf2.10 code
  - Add conda tests

* train: re-enable optimizer saving

* Update dockerfiles

* Update setup.py
  - Apple Conda deps to setup.py
  - Better Cuda + dependency handling

* bugfix: Patch logging to prevent Autograph errors

* Update dockerfiles

* Setup.py - Setup.py - stdout to utf-8

* Add more OSes to github Actions

* suppress mac-os end to end test 
tests/lib/gui/stats/event_reader_test.py