code: def set_child(self, index, child):
          
  
          if index == 0:
              self.left = child
          else:
              self.right = child
docs: Sets one of the node's children
  
          index 0 refers to the left, 1 to the right child