class_docstr: Experimental
docstr: Placeholder docstring
docstr_tok: ["Placeholder","docstring"]
code: def save_metadata(self) -> None:
      """Placeholder docstring"""
      logging.info("Getting xgboost metadata...")
      xgboost_metadata = XGBoostMetadata()
      xgboost_metadata.model_type = self.model_type
      xgboost_metadata.task = self.task
      xgboost_metadata.version = self.version
      xgboost_metadata.framework = self.framework
      xgboost_metadata.framework_version = self.framework_version
      xgboost_metadata.model_file = (
          f"{self.model_path.split('/')[-1]}.{self.model_format}"
      )
      xgboost_metadata.requirements_file = self.requirements_path.split(
          "/"
      )[-1]
      xgboost_metadata.schema_file = (
          f"{self.schema_path.split('/')[-1]}.{self.schema_format}"
      )
      xgboost_metadata.schema_hmac = self.schema_hmac
  
      if self.model:
          xgboost_metadata.model_hmac = self.model_hmac
          xgboost_metadata.inference_spec_file = None
          xgboost_metadata.inference_spec_hmac = None
      elif self.inference_spec:
          xgboost_metadata.inference_spec_file = f"{self.inference_spec_path.split('/')[-1]}.{self.inference_spec_format}"
          xgboost_metadata.inference_spec_hmac = (
              self.inference_spec_hmac
          )
          xgboost_metadata.model_file = None
          xgboost_metadata.model_hmac = None
  
      xgboost_metadata.optimizer_metadata = self.optimizer_metadata
      save_yaml(self.metadata_path, xgboost_metadata.to_dict())
      logging.info("XGBoost metadata captured successfully")
  
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 2 for calling the XGBoostHandler obj's underlying member method code with example usage: obj.save_metadata() without return types