<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def patch_tree(actions, tree):
 """Takes an lxml root element or element tree, and a list of actions"""

    patcher = patch.Patcher()
    return patcher.patch(actions, tree)