def configure_pre_processor(cls, image_size: tuple[int, int] | None = None) -> PreProcessor:
        """Configure default pre-processor for U-Flow model.

        Args:
            image_size (tuple[int, int] | None, optional): Input image size.
                Not used as U-Flow has fixed input size. Defaults to ``None``.

        Returns:
            PreProcessor: Default pre-processor with resizing and normalization.

        Note:
            The input image size is fixed to 448x448 for U-Flow regardless of
            the provided ``image_size``.
        """
        if image_size is not None:
            logger.warning("Image size is not used in UFlow. The input image size is determined by the model.")
        transform = Compose([
            Resize((448, 448), antialias=True),
            Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
        ])
        return PreProcessor(transform=transform)
Configure default pre-processor for U-Flow model.

        Args:
            image_size (tuple[int, int] | None, optional): Input image size.
                Not used as U-Flow has fixed input size. Defaults to ``None``.

        Returns:
            PreProcessor: Default pre-processor with resizing and normalization.

        Note:
            The input image size is fixed to 448x448 for U-Flow regardless of
            the provided ``image_size``.
        
src/anomalib/models/image/uflow/lightning_model.py