          mocker: :class:`pytest_mock.MockerFixture`
              Fixture for mocking various logic calls
          """
          faces = faces_instance
          data: List[Tuple[str, dict]] = [("file4.png", {}), ("file3.png", {}),
                                          ("file1.png", {}), ("file2.png", {})]
          expected = sorted(data)
          process_folder_mock = mocker.patch("tools.alignments.media.Faces.process_folder",
                                             side_effect=[data])
          result = faces.sorted_items()
 
</s> remove         faces.get_faces = cast(MagicMock, mocker.MagicMock())  # type:ignore
 </s> add         faces.get_faces = T.cast(MagicMock, mocker.MagicMock())  # type:ignore </s> remove         data = [dict(frame_fullname="c.png", frame_name="c", frame_extension=".png"),
                dict(frame_fullname="d.png", frame_name="d", frame_extension=".png"),
                dict(frame_fullname="b.jpg", frame_name="b", frame_extension=".jpg"),
                dict(frame_fullname="a.png", frame_name="a", frame_extension=".png")]
        expected = [dict(frame_fullname="a.png", frame_name="a", frame_extension=".png"),
                    dict(frame_fullname="b.jpg", frame_name="b", frame_extension=".jpg"),
                    dict(frame_fullname="c.png", frame_name="c", frame_extension=".png"),
                    dict(frame_fullname="d.png", frame_name="d", frame_extension=".png")]
 </s> add         data = [{"frame_fullname": "c.png", "frame_name": "c", "frame_extension": ".png"},
                {"frame_fullname": "d.png", "frame_name": "d", "frame_extension": ".png"},
                {"frame_fullname": "b.jpg", "frame_name": "b", "frame_extension": ".jpg"},
                {"frame_fullname": "a.png", "frame_name": "a", "frame_extension": ".png"}]
        expected = [{"frame_fullname": "a.png", "frame_name": "a", "frame_extension": ".png"},
                    {"frame_fullname": "b.jpg", "frame_name": "b", "frame_extension": ".jpg"},
                    {"frame_fullname": "c.png", "frame_name": "c", "frame_extension": ".png"},
                    {"frame_fullname": "d.png", "frame_name": "d", "frame_extension": ".png"}] </s> remove         media_loader.load_video_frame = cast(MagicMock,  # type:ignore
                                             mocker.MagicMock(return_value=expected))
 </s> add         media_loader.load_video_frame = T.cast(MagicMock,  # type:ignore
                                               mocker.MagicMock(return_value=expected)) </s> remove         data = [(f"file{idx}.png", dict(source=dict(source_filename=f"src{idx}.png",
                                                    face_index=0)))
 </s> add         data = [(f"file{idx}.png", {"source": {"source_filename": f"src{idx}.png",
                                               "face_index": 0}}) </s> remove         images_canvas_instance.reload = cast(MagicMock, mocker.MagicMock())  # type:ignore
 </s> add         images_canvas_instance.reload = T.cast(MagicMock, mocker.MagicMock())  # type:ignore
        data: list[tuple[str, dict]] = [("file4.png", {}), ("file3.png", {}),
          mocker: :class:`pytest_mock.MockerFixture`
              Fixture for mocking various logic calls
          """
          faces = faces_instance
        data: list[tuple[str, dict]] = [("file4.png", {}), ("file3.png", {}),
                                          ("file1.png", {}), ("file2.png", {})]
          expected = sorted(data)
          process_folder_mock = mocker.patch("tools.alignments.media.Faces.process_folder",
                                             side_effect=[data])
          result = faces.sorted_items()
keep keep keep keep 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/tools/alignments/media_test.py