[Beta] Adding global function for getting nodes of particular type