code: def makeref2namesdct(name2refdct):
      
      ref2namesdct = {}
      for key, values in name2refdct.items():
          for value in values:
              ref2namesdct.setdefault(value, set()).add(key)
      return ref2namesdct
docs: make the ref2namesdct in the idd_index