code: def find_voters_with_most_frequent_length(sync, voters):
      lengths = {}
  
      for i, voter in enumerate(voters):
          length = sync.length(i)
  
          if length in lengths:
              lengths[length] += 1
          else:
              lengths[length] = 1
  
      most_freq = max(lengths.items(), key=operator.itemgetter(1))[0]
  
      return [
          i
          for i, voter in enumerate(voters)
          if sync.length(i) == most_freq
      ], most_freq
  
file_path: calamari/calamari_ocr/ocr/voting/confidence_voter.py
imports: import operator
  from calamari_ocr.ocr.model.ctcdecoder.ctc_decoder import PredictionPosition, PredictionCharacter
  from calamari_ocr.ocr.dataset.textprocessors import synchronize
  from calamari_ocr.ocr.voting.voter import Voter
label_desc: Use image node_id 2 for calling a global function with example usage: find_voters_with_most_frequent_length(sync, voters) and returns: unknown,  most_freq