class_docstr: Experimental
docstr: Create a XGBoostModel object from the saved model
docstr_tok: ["Create","a","XGBoostModel","object","from","the","saved","model"]
code: def get_pysdk_model(
      self, s3_path: str, role_arn: str, sagemaker_session: Session
  ) -> Type[Model]:
      """Create a XGBoostModel object from the saved model"""
      self.env_vars = {
          "SAGEMAKER_REGION": sagemaker_session.boto_region_name,
          "SAGEMAKER_CONTAINER_LOG_LEVEL": "10",
          "SAGEMAKER_SERVE_SECRET_KEY": self.secret_key,
          "LOCAL_PYTHON": platform.python_version(),
      }
  
      self.pysdk_model = Model(
          model_data=s3_path,
          image_uri=get_image_url("DJLServing"),
          role=role_arn,
          env=self.env_vars,
          sagemaker_session=sagemaker_session,
          predictor_cls=self._get_predictor,
      )
  
      return self.pysdk_model
  
imports: from __future__ import absolute_import
  import platform
  import logging
  from pathlib import Path
  from typing import Type
  from sagemaker.serve.save_retrive.version_1_0_0.save.utils import generate_secret_key, compute_hash, save_pkl, save_yaml, capture_schema, get_image_url
  from sagemaker import Session
  from sagemaker.predictor import Predictor
  from sagemaker.serve.save_retrive.version_1_0_0.metadata.metadata import XGBoostMetadata
  from sagemaker.model import Model
  from sagemaker.serve.save_retrive.version_1_0_0.save.framework.framework_handler import FrameworkHandler
  from sagemaker.serve.builder.schema_builder import SchemaBuilder
  from sagemaker.serve.spec.inference_spec import InferenceSpec
label_desc: Use image node_id 5 for calling the XGBoostHandler obj's underlying member method code with example usage: obj.get_pysdk_model(s3_path, role_arn, sagemaker_session) and returns: self