class_docstr: Experimental
docstr: Placeholder docstring
docstr_tok: ["Placeholder","docstring"]
code: def _get_predictor(
      self, endpoint_name: str, sagemaker_session: Session
  ) -> Predictor:
      """Placeholder docstring"""
      serializer, deserializer = self._get_client_translators()
  
      return Predictor(
          endpoint_name=endpoint_name,
          sagemaker_session=sagemaker_session,
          serializer=serializer,
          deserializer=deserializer,
      )
  
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 7 for calling the XGBoostHandler obj's underlying member method code with example usage: obj._get_predictor(endpoint_name, sagemaker_session) and returns: Predictor