code: def convertSequenceMachineSequence(generatedSequences):
    
    sequenceList = []
    currentSequence = []
    for s in generatedSequences:
      if s is None:
        sequenceList.append(currentSequence)
        currentSequence = []
      else:
        currentSequence.append(s)
  
    return sequenceList
docs: Convert a sequence from the SequenceMachine into a list of sequences, such
    that each sequence is a list of set of SDRs.