human
I wrote the below code

    def delete_func(resource_group_name, resource_name, item_name, no_wait=False):
        client = getattr(_network_client_factory(), resource)
        item = client.get(resource_group_name, resource_name)
        keep_items = [x for x in item.__getattribute__(prop) if (x.name.lower() != item_name.lower())]
        _set_param(item, prop, keep_items)
        if no_wait:
            client.create_or_update(resource_group_name, resource_name, item, raw=no_wait)
        else:
            result = client.create_or_update(resource_group_name, resource_name, item, raw=no_wait).result()
            if next((x for x in getattr(result, prop) if (x.name.lower() == item_name.lower())), None):
                raise CLIError("Failed    to    delete    '{}'    on    '{}'".format(item_name, resource_name))
    func_name = 'delete_network_resource_property_entry_{}_{}'.format(resource, prop)
    setattr(sys.modules[__name__], func_name, delete_func)
    return func_name

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

def delete_network_resource_property_entry(resource, prop):