def train_dataloader(self) -> TRAIN_DATALOADERS:
        """Get training dataloader.

        Returns:
            DataLoader: Training dataloader
        """
        return DataLoader(
            dataset=self.train_data,
            shuffle=True,
            batch_size=self.train_batch_size,
            num_workers=self.num_workers,
            collate_fn=self.external_collate_fn or self.train_data.collate_fn,
        )
Get training dataloader.

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