code: def getroot(self):
          
          if 'class' in self.root.attrib:
              attrib = {'class': self.root.attrib['class']}
          else:
              attrib = None
          return GroupElement(self.root.getchildren(), attrib=attrib)
docs: Return the root element of the figure.
  
          The root element is a group of elements after stripping the toplevel
          ``<svg>`` tag.
  
          Returns
          -------
          GroupElement
              All elements of the figure without the ``<svg>`` tag.