Helpers for node id and type