def update(self, model: AnomalibModule) -> None:
        """Replace cached arguments with arguments from the model.

        Args:
            model (AnomalibModule): The model used for training.
        """
        for key, value in model.trainer_arguments.items():
            if key in self._cached_args and self._cached_args[key] != value:
                logger.info(
                    f"Overriding {key} from {self._cached_args[key]} with {value} for {model.__class__.__name__}",
                )
            self._cached_args[key] = value
Replace cached arguments with arguments from the model.

        Args:
            model (AnomalibModule): The model used for training.
        
src/anomalib/engine/engine.py