code: def resolve(self, key, keylist):
          
          raise AmbiguousKeyError("Ambiguous key "+ repr(key) +
                  ", could be any of " + str(sorted(keylist)))
docs: Hook to resolve ambiguities in selected keys