def items(self) -> list[ItemT]:
        """Convert the batch to a list of DatasetItem objects.

        Returns:
            List of individual items from the batch
        """
        batch_dict = asdict(self)
        return [
            self.item_class(
                **{key: value[i] if hasattr(value, "__getitem__") else None for key, value in batch_dict.items()},
            )
            for i in range(self.batch_size)
        ]
Convert the batch to a list of DatasetItem objects.

        Returns:
            List of individual items from the batch
        
src/anomalib/data/dataclasses/generic.py