code: def has_transition(self, state):
          
          if state in self.transitions:
              return True
  
          if '*' in self.transitions:
              return True
  
          if '+' in self.transitions and self.transitions['+'].target != state:
              return True
  
          return False
docs: Lookup if any transition exists from current model state using current method