          faces_instance: :class:`~tools.alignments.media.Faces`
              The class instance for testing
          """
          faces = faces_instance
          data = [(f"file{idx}.png", dict(source=dict(source_filename=f"src{idx}.png",
                                                      face_index=0)))
                  for idx in range(4)]
          faces.file_list_sorted = data  # type: ignore
          expected = {"src0.png": [0], "src1.png": [0], "src2.png": [0], "src3.png": [0]}
          result = faces.load_items()
          assert result == expected
 
</s> remove         data = [(f"file{idx}.png", dict(source=dict(source_filename=f"src{idx // 2}.png",
                                                    face_index=0 if idx % 2 == 0 else 1)))
 </s> add         data = [(f"file{idx}.png", {"source": {"source_filename": f"src{idx // 2}.png",
                                               "face_index": 0 if idx % 2 == 0 else 1}}) </s> remove         data: List[Tuple[str, dict]] = [("file4.png", {}), ("file3.png", {}),
 </s> add         data: list[tuple[str, dict]] = [("file4.png", {}), ("file3.png", {}), </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         meta_data = dict(itxt=dict(source=(dict(source_filename="data.png"))))
 </s> add         meta_data = {"itxt": {"source": ({"source_filename": "data.png"})}} </s> remove         expected = [dict(frame_fullname="images_000001.png",
                         frame_name="images_000001",
                         frame_extension=".png"),
                    dict(frame_fullname="images_000002.png",
                         frame_name="images_000002",
                         frame_extension=".png")]
 </s> add         expected = [{"frame_fullname": "images_000001.png",
                     "frame_name": "images_000001",
                     "frame_extension": ".png"},
                    {"frame_fullname": "images_000002.png",
                     "frame_name": "images_000002",
                     "frame_extension": ".png"}]
        data = [(f"file{idx}.png", {"source": {"source_filename": f"src{idx}.png",
                                               "face_index": 0}})
          faces_instance: :class:`~tools.alignments.media.Faces`
              The class instance for testing
          """
          faces = faces_instance
        data = [(f"file{idx}.png", {"source": {"source_filename": f"src{idx}.png",
                                               "face_index": 0}})
        data = [(f"file{idx}.png", {"source": {"source_filename": f"src{idx}.png",
                                               "face_index": 0}})
                  for idx in range(4)]
          faces.file_list_sorted = data  # type: ignore
          expected = {"src0.png": [0], "src1.png": [0], "src2.png": [0], "src3.png": [0]}
          result = faces.load_items()
          assert result == expected
keep keep keep keep 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/tools/alignments/media_test.py