def METHOD_NAME(self, engine: Engine) -> None:
    """
    Args:
        engine: Ignite Engine, it can be a trainer, validator or evaluator.
    """
    if self._name is None:
        self.logger = engine.logger
    engine.add_event_handler(Events.STARTED, self)