code: def set_entry(key, value):
      
      if type(key) != str:
          raise KeyError('key must be str')
      _config[key] = value
docs: Set a configuration entry
  
      :param key: key name
      :param value: value for this key
      :raises KeyError: if key is not str