code: def can_transition(self, status_from: str, status_to: str) -> bool:
          
          if not self.STATUSES.can_transition(status_from=status_from, status_to=status_to):
              _logger.info(
                  '`%s` tried to transition from status `%s` to non permitted status `%s`',
                  str(self), status_from, status_to)
              return False
  
          return True
docs: Update the status of the current instance.
  
          Returns:
              boolean: if the instance is updated.