def METHOD_NAME(self, key, value, location):
    """ Insert by key location. """
    i = self.index_for_location(location)
    if i is not None:
        self.insert(i, key, value)
    else:
        self.__setitem__(key, value)