def inverseDict(d):
  return dict(zip(d.values(), d.keys()))
Construct a new dictionary that performs an inverse mapping of a given dictionary.
dataset/ETHPy150Open skyostil/tracy/src/common/Collections.py/inverseDict