def insert_in_next_line(tokens, index, string):
tokenized_string = token_utils.listified_tokenizer(string)<EOL>for i, tok in list(enumerate(tokens[index:])):<EOL><INDENT>token_type = tok[<NUM_LIT:0>]<EOL>if token_type in [tokenize.NL, tokenize.NEWLINE]:<EOL><INDENT>for count, item in enumerate(tokenized_string):<EOL><INDENT>tokens.insert(index+count+i+<NUM_LIT:1>, item)<EOL><DEDENT>break<EOL><DEDENT><DEDENT>
Inserts the given string after the next newline inside tokens starting at
*tokens[index]*.  Indents must be a list of indentation tokens that will
preceeed the insert (can be an empty list).