code: def save_xgboost(save_path: Path, xgb_model: Any):
      """Save xgboost model to json format using save_model"""
      if not save_path.exists():
          save_path.mkdir(parents=True)
      xgb_model.save_model(str(save_path.joinpath("model.json")))
  
imports: from __future__ import absolute_import
  from typing import Any
  from pathlib import Path
  import cloudpickle
label_desc: Use image node_id 2 for calling a global function with example usage: save_xgboost(save_path, xgb_model) without return types