class_docstr: Placeholder docstring
docstr: Placeholder docstring
docstr_tok: ["Placeholder","docstring"]
code: def _start_triton_server(
      self,
      docker_client: docker.DockerClient,
      model_path: str,
      secret_key: str,
      image_uri: str,
      env_vars: dict,
  ):
      """Placeholder docstring"""
      self.container_name = "triton" + uuid.uuid1().hex
      model_repository = model_path + "/model_repository"
      env_vars.update(
          {
              "TRITON_MODEL_DIR": "/models/model",
              "SAGEMAKER_SERVE_SECRET_KEY": secret_key,
              "LOCAL_PYTHON": platform.python_version(),
          }
      )
  
      if "cpu" not in image_uri:
          self.container = docker_client.containers.run(
              image=image_uri,
              command=["tritonserver", "--model-repository=/models"],
              shm_size=_SHM_SIZE,
              device_requests=[
                  DeviceRequest(count=-1, capabilities=[["gpu"]])
              ],
              network_mode="host",
              detach=True,
              auto_remove=True,
              volumes={
                  model_repository: {"bind": "/models", "mode": "rw"}
              },
              environment=env_vars,
          )
  
      else:
          self.container = docker_client.containers.run(
              image=image_uri,
              command=["tritonserver", "--model-repository=/models"],
              shm_size=_SHM_SIZE,
              network_mode="host",
              detach=True,
              auto_remove=True,
              volumes={
                  model_repository: {"bind": "/models", "mode": "rw"}
              },
              environment=env_vars,
          )
  
imports: from __future__ import absolute_import
  import uuid
  import logging
  import importlib
  import platform
  from sagemaker import fw_utils
  from sagemaker import Session
  from sagemaker.base_predictor import PredictorBase
  from sagemaker.serve.utils.uploader import upload
  from sagemaker.serve.utils.exceptions import LocalModelInvocationException
  from sagemaker.s3_utils import determine_bucket_and_prefix, parse_s3_url
  from sagemaker.local.utils import get_docker_host
  import docker
  from docker.types import DeviceRequest
label_desc: Use image node_id 2 for calling the LocalTritonServer obj's underlying member method code with example usage: obj._start_triton_server(docker_client, model_path, secret_key, image_uri, env_vars) without return types