def METHOD_NAME(self, model: nn.Module, logger: SummaryWriter, abort_signal: Any):
    self.model = model
    self.logger = logger
    if abort_signal is not None:
        self.abort = abort_signal
    else:
        self.abort = None
    self.configure_optimizer()