def add_group(self, group_attribs=None, parent=None):
if parent is None:<EOL><INDENT>parent = self.tree.getroot()<EOL><DEDENT>elif not self.contains_group(parent):<EOL><INDENT>warnings.warn('<STR_LIT>'<EOL>'<STR_LIT>'.format(parent))<EOL><DEDENT>if group_attribs is None:<EOL><INDENT>group_attribs = {}<EOL><DEDENT>else:<EOL><INDENT>group_attribs = group_attribs.copy()<EOL><DEDENT>return SubElement(parent, '<STR_LIT>'.format(<EOL>SVG_NAMESPACE['<STR_LIT>']), group_attribs)<EOL>
Add an empty group element to the SVG.