code: def load_xgboost_from_json(model_save_path: str, class_name: str):
      """Load xgboost model from json format"""
      try:
          kls = _get_class_from_name(class_name=class_name)
          xgb_model = kls()
          xgb_model.load_model(model_save_path)
          return xgb_model
      except Exception as e:
          raise ValueError(
              (
                  "Unable to instantiate %s due to %s, please provide"
                  "your custom code for loading the model with InferenceSpec"
              )
              % (class_name, e)
          )
  
imports: from __future__ import absolute_import
  from typing import Any
  from pathlib import Path
  import cloudpickle
label_desc: Use image node_id 3 for calling a global function with example usage: load_xgboost_from_json(model_save_path, class_name) and returns: xgb_model