code: def fromtree(cls, tree):
          
          mets = cls()
          mets.tree = tree
          mets._parse_tree(tree)
  
          return mets
docs: Create a METS from an ElementTree or Element.
  
          :param ElementTree tree: ElementTree to build a METS document from.