human
I wrote the below code

    addresses = []
    local_ip = get_local_ip_for(target)
    if local_ip:
        addresses.append(local_ip)
    if (sys.platform == 'cygwin'):
        d = _cygwin_hack_find_addresses(target)
    else:
        d = _find_addresses_via_config()
    def _collect(res):
        for addr in res:
            if ((addr != '0.0.0.0') and (not (addr in addresses))):
                addresses.append(addr)
        return addresses
    d.addCallback(_collect)
    return d

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def get_local_addresses_async(target='198.41.0.4'):