finishing the porting of node_is_type rule condition issue-2281117