def val_dataloader(self) -> EVAL_DATALOADERS:
        """Get validation dataloader.

        Returns:
            DataLoader: Validation dataloader
        """
        return DataLoader(
            dataset=self.val_data,
            shuffle=False,
            batch_size=self.eval_batch_size,
            num_workers=self.num_workers,
            collate_fn=self.external_collate_fn or self.val_data.collate_fn,
        )
Get validation dataloader.

        Returns:
            DataLoader: Validation dataloader
        
src/anomalib/data/datamodules/base/image.py