code: def _getLocationKey(loc):
      return tuple(sorted(loc.items(), key=lambda kv: kv[0]))
  
imports: from fontTools.misc.roundTools import noRound, otRound
  from fontTools.misc.intTools import bit_count
  from fontTools.ttLib.tables import otTables
  from fontTools.varLib.models import supportScalar
  from fontTools.varLib.builder import buildVarRegionList, buildVarStore, buildVarRegion, buildVarData
  from functools import partial
  from collections import defaultdict
  from heapq import heappush, heappop
label_desc: Use image node_id 1 for calling a global function with example usage: _getLocationKey(loc) and returns: tuple