def METHOD_NAME(self, trainer: Engine) -> None:
    """
    Set trainer to execute early stop if not setting properly in `__init__()`.
    """
    self._handler = EarlyStopping(
        patience=self.patience,
        score_function=self.score_function,
        trainer=trainer,
        min_delta=self.min_delta,
        cumulative_delta=self.cumulative_delta,
    )