def __setitem__(self, key, val):
    """Do not allow assignment to key values not contained in the defaults"""
    if key not in MobsterConfigDict.CONFIG_DEFAULTS.keys():
      raise KeyError('Invalid config key {0}'.format(key))
    return dict.__setitem__(self, key, val)
dataset/ETHPy150Open linkedin/mobster/src/linkedin/mobster/mobsterconfig.py/MobsterConfigDict.__setitem__/original