class_docstr: Lightweight Djl predictor for local deployment in IN_PROCESS and LOCAL_CONTAINER modes
class_docstr_tok: ["Lightweight","Djl","predictor","for","local","deployment","in","IN_PROCESS","and","LOCAL_CONTAINER","modes"]
docstr: Placeholder docstring
docstr_tok: ["Placeholder","docstring"]
code: def predict(self, data):
      """Placeholder docstring"""
      return self.deserializer.deserialize(
          io.BytesIO(
              self._mode_obj._invoke_djl_serving(
                  self.serializer.serialize(data),
                  self.content_type,
                  self.deserializer.ACCEPT[0],
              )
          ),
          self.content_type,
      )
  
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 2 for calling the DjlLocalModePredictor obj's underlying member method code with example usage: obj.predict(data) and returns: self