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"]
docstr: Placeholder docstring
docstr_tok: ["Placeholder","docstring"]
code: def destroy_server(self):
      """Placeholder docstring"""
      if self.container:
          try:
              logger.debug("Stopping currently running container...")
              self.container.kill()
          except docker.errors.APIError as exc:
              if (
                  exc.response.status_code < 400
                  or exc.response.status_code > 499
              ):
                  raise Exception(
                      "Error encountered when cleaning up local container"
                  ) from exc
          self.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 5 for calling the LocalContainerMode obj's underlying member method code with example usage: obj.destroy_server() without return types