code: def has_stopped(self):
      return self.status == PatienceEnum.STOPPED
  
imports: from enum import Enum
  from onmt.utils.logging import logger
label_desc: Use image node_id 9 for calling the EarlyStopping obj's underlying member method code with example usage: obj.has_stopped() and returns: unknown