code: def test_height():
      tree = BinaryBranch(
          BinaryBranch(
              BinaryBranch(
                  BinaryBranch(Leaf(), Leaf()),
                  Leaf(),
              ),
              BinaryBranch(Leaf(), Leaf()),
          ),
          BinaryBranch(Leaf(), Leaf()),
      )
  
      assert tree.height == 5
      assert tree.children[0].height == 4
      assert tree.children[1].height == 2
      assert tree.children[1].children[0].height == 1
  
file_path: river/river/tree/test_base.py
imports: from __future__ import annotations
  from river.tree.base import Branch, Leaf
label_desc: Use image node_id 2 for calling a global function with example usage: test_height() without return types