convert_range_to_node function

Convert range to node id