def nested_set(data, keys, value):
    """
    Set `data[key1][key2]...[keyN] = value`
    """
    if not keys:
        raise TypeError('At least one key is required')
    for key in keys[:-1]:
        data = data[key]
    data[keys[-1]] = value
