== parent.lchild:
newSubRoot, parent.color, sibling.color = rotateR2L(sibling), 'red', '...black'
else:
newSubRoot, parent.color, sibling.color = rotateL2R(sibling), 'red',...siblingLeftChild, siblingRightChild = sibling.lchild, sibling.rchild
if siblingRightChild and...== parent.lchild:
newSubRoot, parent.color, sibling.color = rotateR2L(sibling), 'red', '...black'
else:
newSubRoot, parent.color, sibling.color = rotateL2R(sibling), 'red',