class_docstr: Deserialize data from an inference endpoint into a decoded string.
class_docstr_tok: ["Deserialize","data","from","an","inference","endpoint","into","a","decoded","string","."]
docstr: Initialize a ``StringDeserializer`` instance.
  
  Args:
      encoding (str): The string encoding to use (default: UTF-8).
      accept (union[str, tuple[str]]): The MIME type (or tuple of allowable MIME types) that
          is expected from the inference endpoint (default: "application/json").
docstr_tok: ["Initialize","a","``","StringDeserializer","``","instance",".","Args",":","encoding","(","str",")",":","The","string","encoding","to","use","(","default",":","UTF-8",")",".","accept","(","union","[","str",",","tuple","[","str","]","]",")",":","The","MIME","type","(","or","tuple","of","allowable","MIME","types",")","that","is","expected","from","the","inference","endpoint","(","default",":","``","application\/json","''",")","."]
code: def __init__(self, encoding="UTF-8", accept="application/json"):
      """Initialize a ``StringDeserializer`` instance.
  
      Args:
          encoding (str): The string encoding to use (default: UTF-8).
          accept (union[str, tuple[str]]): The MIME type (or tuple of allowable MIME types) that
              is expected from the inference endpoint (default: "application/json").
      """
      super(StringDeserializer, self).__init__(accept=accept)
      self.encoding = encoding
  
imports: from __future__ import absolute_import
  import csv
  import abc
  import codecs
  import io
  import json
  import numpy
  from six import with_metaclass
  from sagemaker.utils import DeferredError
label_desc: Use image node_id 1 to create a new StringDeserializer object from inherited base classes: SimpleBaseDeserializer with example: obj = StringDeserializer(encoding, accept)