def collect_reference_images(self, dataloader: DataLoader) -> None:
        """Collect reference images for few-shot inference.

        Args:
            dataloader (DataLoader): DataLoader containing normal images for
                reference.
        """
        for batch in dataloader:
            for img_path in batch.image_path:
                self.vlm_backend.add_reference_images(img_path)
                if self.vlm_backend.num_reference_images == self.k_shot:
                    return
Collect reference images for few-shot inference.

        Args:
            dataloader (DataLoader): DataLoader containing normal images for
                reference.
        
src/anomalib/models/image/vlm_ad/lightning_model.py