code: def _max_recursion_depth(obj):
      ''' Estimate recursion depth, which is defined as the number of nodes in a tree
      '''
      neurites = obj.neurites if hasattr(obj, 'neurites') else [obj]
  
      return max(sum(1 for _ in neu.iter_sections()) for neu in neuritesf _max_recursion_depth(obj):
      ''' Estimate recursion depth, which is defined as the number of nodes in a tree
      '''
      neurites = obj.neurites if hasattr(obj, 'neurites') else [obj]
  
      return max(sum(1 for _ in neu.iter_sections()) for neu in neurites)
docs: Estimate recursion depth, which is defined as the number of nodes in a tree