class_docstr: A :py:class:`~ray.train.Checkpoint` with XGBoost-specific functionality.
docstr: Retrieve the XGBoost model stored in this checkpoint.
docstr_tok: ["Retrieve","the","XGBoost","model","stored","in","this","checkpoint","."]
code: def get_model(self) -> xgboost.Booster:
      """Retrieve the XGBoost model stored in this checkpoint."""
      with self.as_directory() as checkpoint_path:
          booster = xgboost.Booster()
          booster.load_model(
              os.path.join(checkpoint_path, self.MODEL_FILENAME)
          )
          return booster
  
file_path: ray/python/ray/train/xgboost/xgboost_checkpoint.py
imports: import os
  import tempfile
  from typing import TYPE_CHECKING, Optional
  import xgboost
  from ray.train._internal.framework_checkpoint import FrameworkCheckpoint
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 2 for calling the XGBoostCheckpoint obj's underlying member method code with example usage: obj.get_model() and returns: booster