code: def _check_train_time(self) -> None:
          
          if self._minutes is not None and (datetime.now() - self._training_start).total_seconds()/60 > self._minutes:
                  raise TrainingTerminated('Training terminated after more than {} minutes'.format(self._minutes))
docs: Stop the training if the training time exceeded ``self._minutes``.
  
          :raise TrainingTerminated: if the training time exceeded ``self._minutes``