<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def group_by_key_func(iterable, key_func):
 """ Create a dictionary from an iterable such that the keys are the result of evaluating a key function on elements of the iterable and the values are lists of elements all of which correspond to the key. [(1, ['a', 'd']), (2, ['bb', 'ee']), (3, ['ccc', 'fff'])] [(0, [0, 6, 8, 2]), (1, [-1, 1, 3, 9])] """

    result = defaultdict(list)
    for item in iterable:
        result[key_func(item)].append(item)
    return result