class_docstr: Wrapper for custom entry_point
code: def __init__(
      self,
      model_name,
      model_dir,
      manifest,
      entry_point,
      gpu,
      batch_size,
      limit_max_image_pixels=True,
      metrics_cache=None,
  ):
      model_yaml_config = {}
      if manifest is not None and "model" in manifest:
          model = manifest["model"]
          if "configFile" in model:
              model_yaml_config_file = model["configFile"]
              model_yaml_config = get_yaml_config(
                  os.path.join(model_dir, model_yaml_config_file)
              )
  
      self._context = Context(
          model_name,
          model_dir,
          manifest,
          batch_size,
          gpu,
          ts.__version__,
          limit_max_image_pixels,
          metrics_cache,
          model_yaml_config,
      )
      self._entry_point = entry_point
  
file_path: serve/ts/service.py
imports: import logging
  import os
  import time
  from builtins import str
  import ts
  from ts.context import Context, RequestProcessor
  from ts.protocol.otf_message_handler import create_predict_response
  from ts.utils.util import PredictionException, get_yaml_config
label_desc: Use image node_id 1 to create a new Service object from inherited base classes: object with example: obj = Service(model_name, model_dir, manifest, entry_point, gpu, batch_size, limit_max_image_pixels, metrics_cache)