class_docstr: A class that holds methods to deploy model to a container in local environment
class_docstr_tok: ["A","class","that","holds","methods","to","deploy","model","to","a","container","in","local","environment"]
code: def __init__(
      self,
      model_server: ModelServer,
      inference_spec: Type[InferenceSpec],
      schema_builder: Type[SchemaBuilder],
      session: Session,
      model_path: str = None,
      env_vars: Dict = None,
  ):
      # pylint: disable=bad-super-call
      super().__init__()
      super(LocalDJLServing, self).__init__()
      super(LocalTritonServer, self).__init__()
  
      self.inference_spec = inference_spec
      self.model_path = model_path
      self.env_vars = env_vars
      self.session = session
      self.schema_builder = schema_builder
      self.ecr = session.boto_session.client("ecr")
      self.model_server = model_server
      self.client = None
      self.container = None
      self.secret_key = None
      self._ping_container = None
  
imports: from __future__ import absolute_import
  from pathlib import Path
  import logging
  from datetime import datetime, timedelta
  from typing import Dict, Type
  import base64
  import time
  import subprocess
  import docker
  from sagemaker.base_predictor import PredictorBase
  from sagemaker.serve.spec.inference_spec import InferenceSpec
  from sagemaker.serve.builder.schema_builder import SchemaBuilder
  from sagemaker.serve.utils.logging_agent import pull_logs
  from sagemaker.serve.utils.types import ModelServer
  from sagemaker.serve.utils.exceptions import LocalDeepPingException
  from sagemaker.serve.model_server.torchserve.server import LocalTorchServe
  from sagemaker.serve.model_server.djl_serving.server import LocalDJLServing
  from sagemaker.serve.model_server.triton.server import LocalTritonServer
  from sagemaker.serve.model_server.tgi.server import LocalTgiServing
  from sagemaker.session import Session
label_desc: Use image node_id 1 to create a new LocalContainerMode object from inherited base classes: LocalTorchServe, LocalDJLServing, LocalTritonServer, LocalTgiServing with example: obj = LocalContainerMode(model_server, inference_spec, schema_builder, session, model_path, env_vars)