def METHOD_NAME(action, instance, reverse, pk_set, **kwargs):
    if not need_rebuild_mapping_node(action):
        return
    if reverse:
        asset_ids = pk_set
        node_ids = [instance.id]
    else:
        asset_ids = [instance.id]
        node_ids = pk_set
    UserPermTreeExpireUtil().expire_perm_tree_for_nodes_assets(node_ids, asset_ids)