def _setitem_with_key_seq(self, key_seq, value):
table = self<EOL>key_so_far = tuple()<EOL>for key in key_seq[:-<NUM_LIT:1>]:<EOL><INDENT>key_so_far += (key,)<EOL>self._make_sure_table_exists(key_so_far)<EOL>table = table[key]<EOL><DEDENT>table[key_seq[-<NUM_LIT:1>]] = value<EOL>
Sets a the value in the TOML file located by the given key sequence.

Example:
self._setitem(('key1', 'key2', 'key3'), 'text_value')
is equivalent to doing
self['key1']['key2']['key3'] = 'text_value'