def test_non_image_file(dataset_path: Path) -> None:
        """Test ``get_image_filenames`` raises ValueError for a non-image file."""
        filename = dataset_path / "avenue/ground_truth_demo/testing_label_mask/1_label.mat"
        with pytest.raises(ValueError, match=r"``filename`` is not an image file*"):
            get_image_filenames(filename)
Test ``get_image_filenames`` raises ValueError for a non-image file.
tests/unit/data/utils/test_image.py