code: def get_max_depth(self):
      return int(
          self.config["learner"]["gradient_booster"]["updater"][
              "prune"
          ]["train_param"]["max_depth"]
      )
  
imports: import json
  import math
  from collections import defaultdict
  from typing import List, Mapping
  import numpy
  from dtreeviz.models.shadow_decision_tree import VisualisationNotYetSupportedError
  from dtreeviz.models.shadow_decision_tree import ShadowDecTree
  from dtreeviz import utils
  import xgboost
  from xgboost.core import Booster
label_desc: Use image node_id 31 for calling the ShadowXGBDTree obj's underlying member method code with example usage: obj.get_max_depth() and returns: int