class_docstr: Representation of a node within a Mondrian tree
docstr: Update the depth of the current node with the given depth.
  
  Parameters
  ----------
  depth
      Depth of the node.
docstr_tok: ["Update","the","depth","of","the","current","node","with","the","given","depth",".","Parameters","--","--","--","--","--","depth","Depth","of","the","node","."]
code: def update_depth(self, depth):
      """Update the depth of the current node with the given depth.
  
      Parameters
      ----------
      depth
          Depth of the node.
  
      """
  
      self.depth = depth
  
      if isinstance(self, MondrianLeaf):
          return
  
      depth += 1
  
      left, right = self.children
      left.update_depth(depth)
      right.update_depth(depth)
  
imports: from __future__ import annotations
  import collections
  import math
  from river import base, stats
  from river.tree.base import Branch, Leaf
  from river.utils.math import log_sum_2_exp
label_desc: Use image node_id 2 for calling the MondrianNode obj's underlying member method code with example usage: obj.update_depth(depth) without return types