#NEWLINE# def get_root_tag( node ) : #NEWLINE# #INDENT# tag = Tag_pattern_ . match ( node . tag ) . groups ( ) [ ( - 1 ) ] #NEWLINE# rootClass = GDSClassesMapping . get ( tag ) #NEWLINE# if ( rootClass is None ) : #NEWLINE# #INDENT# rootClass = globals ( ) . get ( rootClass ) #NEWLINE# #UNINDENT# return ( tag , rootClass )