def validation_step(self, batch: Batch, *args, **kwargs) -> STEP_OUTPUT:
        """Perform a validation step of the CFLOW model.

        The validation process:
        1. Extracts features using the encoder
        2. Computes anomaly maps using the trained decoders
        3. Updates the batch with predictions

        Args:
            batch (Batch): Input batch containing images
            *args: Additional arguments (unused)
            **kwargs: Additional keyword arguments (unused)

        Returns:
            STEP_OUTPUT: Batch updated with model predictions
        """
        del args, kwargs  # These variables are not used.

        predictions = self.model(batch.image)
        return batch.update(**predictions._asdict())
Perform a validation step of the CFLOW model.

        The validation process:
        1. Extracts features using the encoder
        2. Computes anomaly maps using the trained decoders
        3. Updates the batch with predictions

        Args:
            batch (Batch): Input batch containing images
            *args: Additional arguments (unused)
            **kwargs: Additional keyword arguments (unused)

        Returns:
            STEP_OUTPUT: Batch updated with model predictions
        
src/anomalib/models/image/cflow/lightning_model.py