class_docstr: Placeholder docstring
class_docstr_tok: ["Placeholder","docstring"]
docstr: Placeholder docstring
docstr_tok: ["Placeholder","docstring"]
code: def _tgi_deep_ping(self, predictor: PredictorBase):
      """Placeholder docstring"""
      response = None
      try:
          response = predictor.predict(self.schema_builder.sample_input)
          return (True, response)
          # pylint: disable=broad-except
      except Exception as e:
          if "422 Client Error: Unprocessable Entity for url" in str(e):
              raise LocalModelInvocationException(str(e))
          return (False, response)
  
      return (True, response)
  
file_path: sagemaker-python-sdk/src/sagemaker/serve/model_server/tgi/server.py
imports: from __future__ import absolute_import
  import requests
  import logging
  from pathlib import Path
  from docker.types import DeviceRequest
  from sagemaker import Session, fw_utils
  from sagemaker.serve.utils.exceptions import LocalModelInvocationException
  from sagemaker.base_predictor import PredictorBase
  from sagemaker.s3_utils import determine_bucket_and_prefix, parse_s3_url, s3_path_join
  from sagemaker.s3 import S3Uploader
  from sagemaker.local.utils import get_docker_host
label_desc: Use image node_id 3 for calling the LocalTgiServing obj's underlying member method code with example usage: obj._tgi_deep_ping(predictor) and returns: True,  response, True,  response, False,  response