def get_name_str(self, element):
name = self.remove_model_prefix(self.url_to_prefix(element.tag))<EOL>flags = self.get_flags_str(element)<EOL>type_info = element.get('<STR_LIT:type>')<EOL>if type_info is None:<EOL><INDENT>pass<EOL><DEDENT>elif type_info == '<STR_LIT>':<EOL><INDENT>if element.get('<STR_LIT>') == '<STR_LIT:true>':<EOL><INDENT>return flags + '<STR_LIT>'.format(name)<EOL><DEDENT>else:<EOL><INDENT>return flags + '<STR_LIT>'.format(name)<EOL><DEDENT><DEDENT>elif type_info == '<STR_LIT>':<EOL><INDENT>return '<STR_LIT>'.format(name)<EOL><DEDENT>elif type_info == '<STR_LIT>':<EOL><INDENT>return flags + '<STR_LIT>'.format(name)<EOL><DEDENT>elif type_info == '<STR_LIT>' ortype_info == '<STR_LIT>' ortype_info == '<STR_LIT>':<EOL><INDENT>if element.get('<STR_LIT>') == '<STR_LIT:true>':<EOL><INDENT>return flags + '<STR_LIT>'.format(name)<EOL><DEDENT>else:<EOL><INDENT>return flags + '<STR_LIT>'.format(name)<EOL><DEDENT><DEDENT>elif type_info == '<STR_LIT:list>':<EOL><INDENT>if element.get('<STR_LIT:key>') is not None:<EOL><INDENT>return flags + '<STR_LIT>'.format(name, element.get('<STR_LIT:key>'))<EOL><DEDENT>else:<EOL><INDENT>return flags + '<STR_LIT>'.format(name)<EOL><DEDENT><DEDENT>elif type_info == '<STR_LIT>':<EOL><INDENT>return flags + '<STR_LIT>'.format(name)<EOL><DEDENT>else:<EOL><INDENT>return flags + '<STR_LIT>'.format(name)<EOL><DEDENT>
get_name_str

        High-level api: Produce a string that represents the name of a node.

        Parameters
        ----------

        element : `Element`
            A node in model tree.

        Returns
        -------

        str
            A string that represents the name of a node.