class_docstr: Mixin class for SchemaBuilder that holds Triton specific methods
docstr: Detect the class of sample_input and sample_output
docstr_tok: ["Detect","the","class","of","sample_input","and","sample_output"]
code: def _detect_class_of_sample_input_and_output(self):
      """Detect the class of sample_input and sample_output"""
      input_class_name = str(self.sample_input.__class__)
      for supported_type in SUPPORTED_TYPES:
          if supported_type in input_class_name:
              self._input_class_name = supported_type
              break
  
      if not self._input_class_name:
          raise ValueError(
              (
                  "Unable to update input serializer and deserializer for type %s for Triton. "
                  "Please provide sample_input of the following type: %s to SchemaBuilder."
              )
              % (type(self.sample_input), SUPPORTED_TYPES)
          )
  
      # Update for Output
      output_class_name = str(self.sample_output.__class__)
      for supported_type in SUPPORTED_TYPES:
          if supported_type in output_class_name:
              self._output_class_name = supported_type
              break
  
      if not self._output_class_name:
          raise ValueError(
              (
                  "Unable to update output serializer and deserializer for type %s for Triton. "
                  "Please provide sample_output of the following type: %s to SchemaBuilder."
              )
              % (type(self.sample_output), SUPPORTED_TYPES)
          )
  
file_path: sagemaker-python-sdk/src/sagemaker/serve/builder/triton_schema_builder.py
imports: from __future__ import absolute_import
  from sagemaker.serve.marshalling.triton_translator import TorchTensorTranslator, TensorflowTensorTranslator, NumpyTranslator, ListTranslator
label_desc: Use image node_id 3 for calling the TritonSchemaBuilder obj's underlying member method code with example usage: obj._detect_class_of_sample_input_and_output() without return types