code: def _get_local_mode_predictor(
      model_server: ModelServer,
      mode_obj: Type[LocalContainerMode],
      serializer=IdentitySerializer(),
      deserializer=BytesDeserializer(),
  ) -> Type[PredictorBase]:
      """Placeholder docstring"""
      if model_server == ModelServer.TORCHSERVE:
          return TorchServeLocalPredictor(
              mode_obj=mode_obj,
              serializer=serializer,
              deserializer=deserializer,
          )
      if model_server == ModelServer.TRITON:
          return TritonLocalPredictor(mode_obj=mode_obj)
  
      raise ValueError(
          "%s model server is not supported yet!" % model_server
      )
  
imports: from __future__ import absolute_import
  import io
  from typing import Type
  from sagemaker import Session
  from sagemaker.serve.mode.local_container_mode import LocalContainerMode
  from sagemaker.serve.builder.schema_builder import SchemaBuilder
  from sagemaker.serializers import IdentitySerializer, JSONSerializer
  from sagemaker.deserializers import BytesDeserializer, JSONDeserializer
  from sagemaker.base_predictor import PredictorBase, Predictor
  from sagemaker.serve.utils.types import ModelServer
  from sagemaker.serve.model_server.triton.triton_builder import TritonSerializer
label_desc: Use image node_id 1 for calling a global function with example usage: _get_local_mode_predictor(model_server, mode_obj, serializer, deserializer) and returns: TorchServeLocalPredictor, TritonLocalPredictor