def _array_setitem_with_key_seq(self, array_name, index, key_seq, value):
table = self.array(array_name)[index]<EOL>key_so_far = tuple()<EOL>for key in key_seq[:-<NUM_LIT:1>]:<EOL><INDENT>key_so_far += (key,)<EOL>new_table = self._array_make_sure_table_exists(array_name, index, key_so_far)<EOL>if new_table is not None:<EOL><INDENT>table = new_table<EOL><DEDENT>else:<EOL><INDENT>table = table[key]<EOL><DEDENT><DEDENT>table[key_seq[-<NUM_LIT:1>]] = value<EOL>
Sets a the array value in the TOML file located by the given key sequence.

Example:
self._array_setitem(array_name, index, ('key1', 'key2', 'key3'), 'text_value')
is equivalent to doing
self.array(array_name)[index]['key1']['key2']['key3'] = 'text_value'