def __init__(self, **kwargs):
reference_tree_path = kwargs.pop('<STR_LIT>', None)<EOL>tree_path = kwargs.pop('<STR_LIT>')<EOL>logging.debug("<STR_LIT>" <EOL>% tree_path)<EOL>self.tree = Tree.get(path=tree_path,<EOL>schema='<STR_LIT>')<EOL>if reference_tree_path:<EOL><INDENT>logging.debug("<STR_LIT>" <EOL>% reference_tree_path)<EOL>self.reference_tree = Tree.get(path=reference_tree_path,<EOL>schema='<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>self.reference_tree = reference_tree_path<EOL><DEDENT>if len(kwargs) > <NUM_LIT:0>:<EOL><INDENT>raise Exception("<STR_LIT>" % kwargs)<EOL><DEDENT>
Parameters
----------
reference_tree_path: str
    Path to the file containing the reference tree, which is used to
    retroot the tree tree provided to tree
tree_path: str
    Path to the file containing the tree to be re-rooted. This tree will
    be rerooted at the same position as the tree porovided to the 
    reference_tree