pub fn reset_node_id()
Resets the global node ID counter Used for testing to ensure consistent behavior