code: def buildVarIdxMap(varIdxes, glyphOrder):
      self = ot.VarIdxMap()
      self.mapping = {g: v for g, v in zip(glyphOrder, varIdxes)}
      return self
  
file_path: catboost/contrib/python/fonttools/fontTools/varLib/builder.py
imports: from fontTools import ttLib
  from fontTools.ttLib.tables import otTables
label_desc: Use image node_id 10 for calling a global function with example usage: buildVarIdxMap(varIdxes, glyphOrder) and returns: self