def enumerate_keyword_args(tokens):
keyword_args = {}<EOL>inside_function = False<EOL>for index, tok in enumerate(tokens):<EOL><INDENT>token_type = tok[<NUM_LIT:0>]<EOL>token_string = tok[<NUM_LIT:1>]<EOL>if token_type == tokenize.NEWLINE:<EOL><INDENT>inside_function = False<EOL><DEDENT>if token_type == tokenize.NAME:<EOL><INDENT>if token_string == "<STR_LIT>":<EOL><INDENT>function_name = tokens[index+<NUM_LIT:1>][<NUM_LIT:1>]<EOL>inside_function = function_name<EOL>keyword_args.update({function_name: []})<EOL><DEDENT>elif inside_function:<EOL><INDENT>if tokens[index+<NUM_LIT:1>][<NUM_LIT:1>] == '<STR_LIT:=>': <EOL><INDENT>keyword_args[function_name].append(token_string)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>return keyword_args<EOL>
Iterates over *tokens* and returns a dictionary with function names as the
keys and lists of keyword arguments as the values.