code: def compileSharedTuples(
      axisTags, variations, MAX_NUM_SHARED_COORDS=TUPLE_INDEX_MASK + 1
  ):
      coordCount = Counter()
      for var in variations:
          coord = var.compileCoord(axisTags)
          coordCount[coord] += 1
      # In python < 3.7, most_common() ordering is non-deterministic
      # so apply a sort to make sure the ordering is consistent.
      sharedCoords = sorted(
          coordCount.most_common(MAX_NUM_SHARED_COORDS),
          key=lambda item: (-item[1], item[0]),
      )
      return [c[0] for c in sharedCoords if c[1] > 1]
  
imports: from fontTools.misc.fixedTools import fixedToFloat, floatToFixed, floatToFixedToStr, strToFixedToFloat, otRound
  from fontTools.misc.textTools import safeEval
  import array
  from collections import Counter, defaultdict
  import io
  import logging
  import struct
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: compileSharedTuples(axisTags, variations, MAX_NUM_SHARED_COORDS) and returns: unknown