code: def createLearningRateScheduler(self, optimizer):
      
      if self.lr_scheduler_class is None:
        return None
  
      return self.lr_scheduler_class(optimizer, **self.lr_scheduler_params)
docs: Creates the learning rate scheduler and attach the optimizer