human
I wrote the below code

    def add_more_info_port_name(port):
        return '{}    ({})'.format(port.name_or_id, ','.join([ip['ip_address'] for ip in port['fixed_ips']]))
    ports = []
    if api.base.is_service_enabled(request, 'network'):
        network_list = api.neutron.network_list_for_tenant(request, request.user.tenant_id)
        for network in network_list:
            ports.extend([(port.id, add_more_info_port_name(port)) for port in api.neutron.port_list(request, network_id=network.id) if (port.device_owner == '')])
    ports.sort(key=(lambda obj: obj[1]))
    return ports

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

def port_field_data(request):