def on_train_epoch_start(self, trainer: pl.Trainer, pl_module: pl.LightningModule) -> None:
        """Prepare compression before each training epoch.

        Called at the beginning of each training epoch to update the compression
        scheduler for the next epoch.

        Args:
            trainer (pl.Trainer): PyTorch Lightning trainer instance
            pl_module (pl.LightningModule): The Lightning module being trained
        """
        del trainer, pl_module  # `trainer` and `pl_module` variables are not used.

        if self.nncf_ctrl:
            self.nncf_ctrl.scheduler.epoch_step()
Prepare compression before each training epoch.

        Called at the beginning of each training epoch to update the compression
        scheduler for the next epoch.

        Args:
            trainer (pl.Trainer): PyTorch Lightning trainer instance
            pl_module (pl.LightningModule): The Lightning module being trained
        
src/anomalib/callbacks/nncf/callback.py