code: def fromstring(cls, string):
          
          parser = etree.XMLParser(remove_blank_text=True)
          root = etree.fromstring(string, parser)
          tree = root.getroottree()
  
          return cls.fromtree(tree)
docs: Create a METS by parsing a string.
  
          :param str string: String containing a METS document.