code: def __init__(
      self,
      server_url: str,
      model_name: str,
      model_version: str,
      *,
      verbose=False,
      resp_wait_s: Optional[float] = None,
  ):
      self._server_url = server_url
      self._model_name = model_name
      self._model_version = model_version
      self._verbose = verbose
      self._response_wait_t = (
          self.DEFAULT_MAX_RESP_WAIT_S
          if resp_wait_s is None
          else resp_wait_s
      )
  
      self._client = InferenceServerClient(
          self._server_url, verbose=self._verbose
      )
      error = self._verify_triton_state(self._client)
      if error:
          raise RuntimeError(
              f"Could not communicate to Triton Server: {error}"
          )
  
      LOGGER.debug(
          f"Triton server {self._server_url} and model {self._model_name}:{self._model_version} "
          f"are up and ready!"
      )
  
      model_config = self._client.get_model_config(
          self._model_name, self._model_version
      )
      model_metadata = self._client.get_model_metadata(
          self._model_name, self._model_version
      )
      LOGGER.info(f"Model config {model_config}")
      LOGGER.info(f"Model metadata {model_metadata}")
  
      for tm in model_metadata.inputs:
          print("tm:", tm)
      self._inputs = {tm.name: tm for tm in model_metadata.inputs}
      self._input_names = list(self._inputs)
      self._outputs = {tm.name: tm for tm in model_metadata.outputs}
      self._output_names = list(self._outputs)
      self._outputs_req = [
          InferRequestedOutput(name) for name in self._outputs
      ]
  
file_path: PaddleDetection/deploy/fastdeploy/serving/paddledet_grpc_client.py
imports: import logging
  import numpy
  import time
  from typing import Optional
  import cv2
  import json
  from tritonclient import utils
  from tritonclient.grpc import InferenceServerClient, InferInput, InferRequestedOutput, service_pb2_grpc, service_pb2
label_desc: Use image node_id 1 to create a new SyncGRPCTritonRunner object  with example: obj = SyncGRPCTritonRunner(server_url, model_name, model_version)