human
I wrote the below code

    def to_delete(nic_id):
        return [n for n in nics_to_delete if (n.id.lower() == nic_id.lower())]
    vm = get_vm(resource_group_name, vm_name)
    nics_to_delete = _build_nic_list(nics)
    existing_nics = _get_existing_nics(vm)
    survived = [x for x in existing_nics if (not to_delete(x.id))]
    return _update_vm_nics(vm, survived, primary_nic)

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

def vm_remove_nics(resource_group_name, vm_name, nics, primary_nic=None):