class_docstr: Noop Model handler implementation.
  
  Extend from BaseModelHandler is optional
class_docstr_tok: ["Noop","Model","handler","implementation",".","Extend","from","BaseModelHandler","is","optional"]
docstr: Custom service entry point function.
  
  :param context: model server context
  :param data: list of objects, raw input from request
  :return: list of outputs to be send back to client
docstr_tok: ["Custom","service","entry","point","function",".",":","param","context",":","model","server","context",":","param","data",":","list","of","objects",",","raw","input","from","request",":","return",":","list","of","outputs","to","be","send","back","to","client"]
code: def handle(self, data, context):
      """
      Custom service entry point function.
  
      :param context: model server context
      :param data: list of objects, raw input from request
      :return: list of outputs to be send back to client
      """
      # Add your initialization code here
      properties = context.system_properties
      server_name = properties.get("server_name")
      server_version = properties.get("server_version")
      model_dir = properties.get("model_dir")
      gpu_id = properties.get("gpu_id")
      batch_size = properties.get("batch_size")
  
      logging.debug("server_name: {}".format(server_name))
      logging.debug("server_version: {}".format(server_version))
      logging.debug("model_dir: {}".format(model_dir))
      logging.debug("gpu_id: {}".format(gpu_id))
      logging.debug("batch_size: {}".format(batch_size))
      try:
          preprocess_start = time.time()
          data = self.preprocess(data)
          inference_start = time.time()
          data = self.inference(data)
          postprocess_start = time.time()
          data = self.postprocess(data)
          end_time = time.time()
  
          context.set_response_content_type(0, "text/plain")
  
          content_type = context.request_processor[
              0
          ].get_request_property("Content-Type")
          logging.debug("content_type: {}".format(content_type))
  
          metrics = context.metrics
          metrics.add_time(
              "PreprocessTime",
              round((inference_start - preprocess_start) * 1000, 2),
          )
          metrics.add_time(
              "InferenceTime",
              round((postprocess_start - inference_start) * 1000, 2),
          )
          metrics.add_time(
              "PostprocessTime",
              round((end_time - postprocess_start) * 1000, 2),
          )
          return data
      except Exception as e:
          logging.error(e, exc_info=True)
          context.request_processor[0].report_status(
              500, "Unknown inference error."
          )
          return ["Error {}".format(str(e))] * len(data)
  
file_path: serve/frontend/archive/src/test/resources/models/noop_no_archive/noop/service.py
imports: import logging
  import time
label_desc: Use image node_id 6 for calling the NoopService obj's underlying member method code with example usage: obj.handle(data, context) and returns: data, unknown