class_docstr: XGBoost model: https://xgboost.readthedocs.io/en/latest/
  
  Hyperparameter options: https://xgboost.readthedocs.io/en/latest/parameter.html
class_docstr_tok: ["XGBoost","model",":","https",":","\/\/xgboost.readthedocs.io\/en\/latest\/","Hyperparameter","options",":","https",":","\/\/xgboost.readthedocs.io\/en\/latest\/parameter.html"]
code: def save(self, path: str = None, verbose=True) -> str:
      _model = self.model
      self.model = None
      if _model is not None:
          self._xgb_model_type = _model.__class__
      path = super().save(path=path, verbose=verbose)
      if _model is not None:
          # Halves disk usage compared to .json / .pkl
          _model.save_model(os.path.join(path, "xgb.ubj"))
      self.model = _model
      return path
  
imports: import logging
  import math
  import os
  import time
  from autogluon.common.features.types import R_BOOL, R_CATEGORY, R_FLOAT, R_INT
  from autogluon.common.utils.lite import disable_if_lite_mode
  from autogluon.common.utils.pandas_utils import get_approximate_df_mem_usage
  from autogluon.common.utils.resource_utils import ResourceManager
  from autogluon.common.utils.try_import import try_import_xgboost
  from autogluon.core.constants import BINARY, MULTICLASS, PROBLEM_TYPES_CLASSIFICATION, REGRESSION, SOFTCLASS
  from autogluon.core.models import AbstractModel
  from autogluon.core.models._utils import get_early_stopping_rounds
  from .None import xgboost_utils
  from .hyperparameters.parameters import get_param_baseline
  from .hyperparameters.searchspaces import get_default_searchspace
label_desc: Use image node_id 17 for calling the XGBoostModel obj's underlying member method code with example usage: obj.save(path, verbose) and returns: path