def configure_optimizers(self) -> torch.optim.Optimizer:
        """Configure the Adam optimizer for CS-Flow.

        Returns:
            torch.optim.Optimizer: Configured Adam optimizer with specific
                hyperparameters

        Example:
            >>> model = Csflow()
            >>> optimizer = model.configure_optimizers()
        """
        return torch.optim.Adam(
            self.parameters(),
            lr=2e-4,
            eps=1e-04,
            weight_decay=1e-5,
            betas=(0.5, 0.9),
        )
Configure the Adam optimizer for CS-Flow.

        Returns:
            torch.optim.Optimizer: Configured Adam optimizer with specific
                hyperparameters

        Example:
            >>> model = Csflow()
            >>> optimizer = model.configure_optimizers()
        
src/anomalib/models/image/csflow/lightning_model.py