code: def add_sequence(sequences, key, reject, index, number_of_voters):
      if key in sequences:
          sequence = sequences[key]
      else:
          sequence = SequenceVoter.Sequence(
              key, [0] * number_of_voters, 0 if reject else 1
          )
          sequences[key] = sequence
  
      sequence.count[index] += 1
  
file_path: calamari/calamari_ocr/ocr/voting/sequence_voter.py
imports: import numpy
  from calamari_ocr.ocr.dataset.textprocessors import synchronize
  from calamari_ocr.ocr.voting.voter import Voter
label_desc: Use image node_id 5 for calling the SequenceVoter obj's underlying member method code with example usage: obj.add_sequence(sequences, key, reject, index, number_of_voters) without return types