def getInstanceMap(instanceKeys): """Gets a map from key to instance for the given keys.""" instances = LoggedErrorInstance.get(instanceKeys) return dict(zip(instanceKeys, instances))