class_docstr: Experimental
docstr: Placeholder docstring
docstr_tok: ["Placeholder","docstring"]
code: def _xgboost_generate_hmac(self) -> None:
      """Placeholder docstring"""
      logger.info("Generating XGBoost model hmac...")
      self.secret_key = generate_secret_key()
  
      if self.model:
          with open(
              Path(f"{self.model_path}.{self.model_format}").absolute(),
              "rb",
          ) as f:
              buffer = f.read()
              self.model_hmac = compute_hash(
                  buffer=buffer, secret_key=self.secret_key
              )
  
      with open(
          Path(f"{self.schema_path}.{self.schema_format}").absolute(),
          "rb",
      ) as f:
          buffer = f.read()
          self.schema_hmac = compute_hash(
              buffer=buffer, secret_key=self.secret_key
          )
  
      if self.inference_spec:
          with open(
              Path(
                  f"{self.inference_spec_path}.{self.inference_spec_format}"
              ).absolute(),
              "rb",
          ) as f:
              buffer = f.read()
              self.inference_spec_hmac = compute_hash(
                  buffer=buffer, secret_key=self.secret_key
              )
  
      logger.info("XGBoost model hmac generated 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 4 for calling the XGBoostHandler obj's underlying member method code with example usage: obj._xgboost_generate_hmac() without return types