code: def test_get_max_depth(xgb_tree):
      assert xgb_tree.get_max_depth() == 3, "max_depth should be 3"
  
file_path: dtreeviz/testing/testlib/models/test_decision_tree_xgb_regressor.py
imports: import joblib
  import numpy
  import pytest
  import xgboost
  from dtreeviz.models.xgb_decision_tree import ShadowXGBDTree
label_desc: Use image node_id 7 for calling a global function with example usage: test_get_max_depth(xgb_tree) without return types