Add a helper function to fetch vlib node index for already stacked dpos