def setup_optimizers(self, trainer: "pl.Trainer") -> None:
        """Creates optimizers and schedulers.

        Args:
            trainer: the Trainer, these optimizers should be connected to

        """
        assert self.lightning_module is not None
        self.optimizers, self.lr_scheduler_configs = _init_optimizers_and_lr_schedulers(self.lightning_module)
Creates optimizers and schedulers.

        Args:
            trainer: the Trainer, these optimizers should be connected to

        
src/lightning/pytorch/strategies/strategy.py