<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def imapchain(*a, **kwa):

 """ Like map but also chains the results. """


    imap_results = map( *a, **kwa )
    return itertools.chain( *imap_results )