get_node_types function

Generic for Getting Node Types