code: def conditions_met(self, instance, state):
          
          transition = self.get_transition(state)
  
          if transition is None:
              return False
          elif transition.conditions is None:
              return True
          else:
              return all(map(lambda condition: condition(instance), transition.conditions))
docs: Check if all conditions have been met