code: def xgb_tree(
      xgb_booster, x_dataset_regressor, y_dataset_regressor
  ) -> ShadowXGBDTree:
      features = [
          "Pclass",
          "Survived",
          "Fare",
          "Sex_label",
          "Cabin_label",
          "Embarked_label",
      ]
      target = "Age"
      return ShadowXGBDTree(
          xgb_booster,
          1,
          x_dataset_regressor,
          y_dataset_regressor,
          features,
          target,
      )
  
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 2 for calling a global function with example usage: xgb_tree(xgb_booster, x_dataset_regressor, y_dataset_regressor) and returns: ShadowXGBDTree