def left_rotate(self, node):
        node_right_child = node.right_child
        if node_right_child:
            node.right_child = node_right_child.left_child
            if node_right_child.left_child:
                node_right_child.left_child.parent = node
            node_right_child.parent = node.parent
        if not node.parent:
            self.root = node_right_child
        elif node == node.parent.left_child:
            node.parent.left_child = node_right_child
        else:
            node.parent.right_child = node_right_child
        if node_right_child:
            node_right_child.left_child = node
        node.parent = node_right_child
Left rotation along a node
dataset/ETHPy150Open christabor/MoAL/MOAL/data_structures/trees/splay_trees.py/SplayTree.left_rotate