def _matches_node_set_props(type_info, node_set_props):
matches = None<EOL>for key in node_set_props:<EOL><INDENT>ns_val = node_set_props[key]<EOL>if key in type_info:<EOL><INDENT>if ns_val==type_info[key]:<EOL><INDENT>if matches:<EOL><INDENT>matches = matches and True<EOL><DEDENT>else:<EOL><INDENT>matches = True<EOL><DEDENT><DEDENT>else:<EOL><INDENT>matches = False<EOL><DEDENT><DEDENT><DEDENT>return matches<EOL>
Check whether the node_set properties match the given model type definition