human
Complete this python program:
def imap(requests, prefetch=True, size=2):
assistant
#Here is the Python code you requested.

    """
    """
    pool = Pool(size)
    def send(r):
        r.send(prefetch)
        return r.response
    for r in pool.imap_unordered(send, requests):
        (yield r)
    pool.join()