def add_transition_to_memory_old(self, input_symbol, state, startNewTransitionQueue, action):
        if (state not in self.memory):
            startNewTransitionQueue = True
            
        cur_memory_state = self.memory.setdefault(state, []) 
        if startNewTransitionQueue: 
            cur_memory_state.append(deque([input_symbol])) 
        else: 
            cur_memory_state[-1].append(input_symbol)
We use startNewTransitionQueue when we have finished with pushing all the actions.
dataset/ETHPy150Open ooici/pyon/pyon/core/governance/conversation/core/fsm.py/FSM.add_transition_to_memory_old