def test_raises_error_when_not_initialized() -> None:
        """Test if an error is raised when trying to access un-initialized attributes."""
        model = WinClipModel()
        with pytest.raises(RuntimeError):
            _ = model.text_embeddings
        with pytest.raises(RuntimeError):
            _ = model.visual_embeddings
        with pytest.raises(RuntimeError):
            _ = model.patch_embeddings
Test if an error is raised when trying to access un-initialized attributes.
tests/unit/models/image/winclip/test_torch_model.py