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: Deserialize data from an inference endpoint into a decoded string.
  
  Args:
      stream (botocore.response.StreamingBody): Data to be deserialized.
      content_type (str): The MIME type of the data.
  
  Returns:
      str: The data deserialized into a decoded string.
docstr_tok: ["Deserialize","data","from","an","inference","endpoint","into","a","decoded","string",".","Args",":","stream","(","botocore.response.StreamingBody",")",":","Data","to","be","deserialized",".","content_type","(","str",")",":","The","MIME","type","of","the","data",".","Returns",":","str",":","The","data","deserialized","into","a","decoded","string","."]
code: def deserialize(self, stream, content_type):
      """Deserialize data from an inference endpoint into a decoded string.
  
      Args:
          stream (botocore.response.StreamingBody): Data to be deserialized.
          content_type (str): The MIME type of the data.
  
      Returns:
          str: The data deserialized into a decoded string.
      """
      try:
          return stream.read().decode(self.encoding)
      finally:
          stream.close()
  
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 2 for calling the StringDeserializer obj's underlying member method code with example usage: obj.deserialize(stream, content_type) and returns: stream