class_docstr: A base Model handler implementation.
docstr: Custom service entry point function.
  
  :param data: list of objects, raw input from request
  :param context: model server context
  :return: list of target model to send back to client
docstr_tok: ["Custom","service","entry","point","function",".",":","param","data",":","list","of","objects",",","raw","input","from","request",":","param","context",":","model","server","context",":","return",":","list","of","target","model","to","send","back","to","client"]
code: def handle(self, data, context):
      """
      Custom service entry point function.
  
      :param data: list of objects, raw input from request
      :param context: model server context
      :return: list of target model to send back to client
      """
      self.error = None  # reset earlier errors
  
      try:
          target_model = context.get_request_header(
              0, "X-Amzn-SageMaker-Target-Model"
          )
          return ["Invoked model: {}".format(target_model)]
      except Exception as e:
          logging.error(e, exc_info=True)
          request_processor = context.request_processor
          request_processor.report_status(
              500, "Unknown inference error"
          )
          return str(e)
  
imports: from __future__ import absolute_import
  import logging
label_desc: Use image node_id 3 for calling the ModelHandler obj's underlying member method code with example usage: obj.handle(data, context) and returns: list, str