class_docstr: Experimental
code: def __init__(
      self,
      version: str,
      py_version: str,
      framework: str,
      framework_version: str,
      model: object,
      model_path: str,
      requirements_path: str,
      schema: SchemaBuilder,
      schema_path: str,
      schema_format: str,
      task: str,
      optimizer_metadata: dict,
      inference_spec: InferenceSpec,
      inference_spec_path: str,
      inference_spec_format: str,
      metadata_path: str,
  ) -> None:
      super().__init__(
          version,
          py_version,
          framework,
          framework_version,
      )
      self.model_type = "XGBoostModel"
      self.task = task
      self.model = model
      self.model_path = model_path
      self.model_format = "pkl"
      self.requirements_path = requirements_path
      self.schema = schema
      self.schema_path = schema_path
      self.schema_format = schema_format
      self.inference_spec = inference_spec
      self.inference_spec_path = inference_spec_path
      self.inference_spec_format = inference_spec_format
      self.optimizer_metadata = optimizer_metadata
      self.metadata_path = metadata_path
      self.model_hmac = None
      self.schema_hmac = None
      self.inference_spec_hmac = None
  
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 1 to create a new XGBoostHandler object from inherited base classes: FrameworkHandler with example: obj = XGBoostHandler(version, py_version, framework, framework_version, model, model_path, requirements_path, schema, schema_path, schema_format, task, optimizer_metadata, inference_spec, inference_spec_path, inference_spec_format, metadata_path)