def test_few_shot_from_setup(apply_transform: bool) -> None:
        """Test WinCLIP initialization from setup method in few-shot mode."""
        ref_images = torch.rand(2, 3, 240, 240)
        model = WinClipModel(apply_transform=apply_transform)
        model.setup(class_name="item", reference_images=ref_images)
        assert model.k_shot == 2
        assert getattr(model, "text_embeddings", None) is not None
        assert getattr(model, "visual_embeddings", None) is not None
Test WinCLIP initialization from setup method in few-shot mode.
tests/unit/models/image/winclip/test_torch_model.py