class_docstr: A TreeSpace class for trees, agents, variables and methods
  related to a tree-based search space.
class_docstr_tok: ["A","TreeSpace","class","for","trees",",","agents",",","variables","and","methods","related","to","a","tree-based","search","space","."]
docstr: Maximum depth of the trees.
docstr_tok: ["Maximum","depth","of","the","trees","."]
code: def max_depth(self) -> int:
      """Maximum depth of the trees."""
  
      return self._max_depth
  
imports: import copy
  from typing import List, Optional, Tuple, Union
  import numpy
  import opytimizer.math.random
  import opytimizer.utils.constant
  import opytimizer.utils.exception
  from opytimizer.core import Agent, Node, Space
  from opytimizer.utils import logging
label_desc: Use image node_id 6 for calling the TreeSpace obj's underlying member method code with example usage: obj.max_depth() and returns: self