def test_nonexistent_file(dataset_path: Path) -> None:
        """Test ``validate_path`` raises FileNotFoundError for a nonexistent file."""
        with pytest.raises(FileNotFoundError):
            validate_path(dataset_path / "nonexistent/file.png")
Test ``validate_path`` raises FileNotFoundError for a nonexistent file.
tests/unit/data/utils/test_path.py