def get_previous_node(node):
if node.prev_sibling:<EOL><INDENT>return node.prev_sibling<EOL><DEDENT>if node.parent:<EOL><INDENT>return get_previous_node(node.parent)<EOL><DEDENT>
Return the node before this node.