class_docstr: ModelService wraps up all preprocessing, inference and postprocessing
  functions used by model service. It is defined in a flexible manner to
  be easily extended to support different frameworks.
class_docstr_tok: ["ModelService","wraps","up","all","preprocessing",",","inference","and","postprocessing","functions","used","by","model","service",".","It","is","defined","in","a","flexible","manner","to","be","easily","extended","to","support","different","frameworks","."]
code: def __init__(
      self, model_name, model_dir, manifest, gpu=None
  ):  # pylint: disable=unused-argument
      self.ctx = None
      self._context = None
      self._signature = None
  
file_path: serve/ts/model_service/model_service.py
imports: import ast
  import json
  import logging
  import os
  import time
  from abc import ABCMeta, abstractmethod
label_desc: Use image node_id 1 to create a new ModelService object from inherited base classes: object with example: obj = ModelService(model_name, model_dir, manifest, gpu)