def METHOD_NAME(self, key, value):
    if key in self.vars and isinstance(self.vars[key], MutableMapping) and isinstance(value, Mapping):
        self.vars = combine_vars(self.vars, {key: value})
    else:
        self.vars[key] = value