code: def getRandomBinaryTreeLeafNode(binaryTree):
      
      if binaryTree.internal == True:
          if random.random() > 0.5:
              return getRandomBinaryTreeLeafNode(binaryTree.left)
          else:
              return getRandomBinaryTreeLeafNode(binaryTree.right)
      else:
          return binaryTree
docs: Get random binary tree node.