code: def generateSequences(n=2048, w=40, sequenceLength=5, sequenceCount=2,
                        sharedRange=None, seed=42):
    
    # Lots of room for noise sdrs
    patternAlphabetSize = 10*(sequenceLength * sequenceCount)
    patternMachine = PatternMachine(n, w, patternAlphabetSize, seed)
    sequenceMachine = SequenceMachine(patternMachine, seed)
    numbers = sequenceMachine.generateNumbers(sequenceCount, sequenceLength,
                                              sharedRange=sharedRange )
    generatedSequences = sequenceMachine.generateFromNumbers(numbers)
  
    return sequenceMachine, generatedSequences, numbers
docs: Generate high order sequences using SequenceMachine