code: def _find_depth(node, current_depth):
      """
      Recursive function traversing a tree and returning the maximum depth.
      """
      if node.left == -1 and node.right == -1:
          return current_depth + 1
      elif node.left != -1 and node.right == -1:
          return _find_depth(node.l, current_depth + 1)
      elif node.right != -1 and node.left == -1:
          return _find_depth(node.r, current_depth + 1)
      elif node.right != -1 and node.left != -1:
          return max(
              _find_depth(node.left, current_depth + 1),
              _find_depth(node.right, current_depth + 1),
          )
  
imports: import copy
  import numpy
  import torch
  from ._tree_implementations import TreeImpl
  from ._tree_implementations import GEMMDecisionTreeImpl, TreeTraversalDecisionTreeImpl, PerfectTreeTraversalDecisionTreeImpl
  from .None import constants
  from hummingbird.ml.exceptions import MissingConverter
label_desc: Use image node_id 2 for calling a global function with example usage: _find_depth(node, current_depth) and returns: unknown, _find_depth, _find_depth, max