class_docstr: Deserialize a stream of bytes into a list of lists.
  
  Consider using :class:~`sagemaker.deserializers.NumpyDeserializer` or
  :class:~`sagemaker.deserializers.PandasDeserializer` instead, if you'd like to convert text/csv
  responses directly into other data types.
class_docstr_tok: ["Deserialize","a","stream","of","bytes","into","a","list","of","lists",".","Consider","using",":","class",":","~","`","sagemaker.deserializers.NumpyDeserializer","`","or",":","class",":","~","`","sagemaker.deserializers.PandasDeserializer","`","instead",",","if","you","'d","like","to","convert","text\/csv","responses","directly","into","other","data","types","."]
docstr: Deserialize data from an inference endpoint into a list of lists.
  
  Args:
      stream (botocore.response.StreamingBody): Data to be deserialized.
      content_type (str): The MIME type of the data.
  
  Returns:
      list: The data deserialized into a list of lists representing the
          contents of a CSV file.
docstr_tok: ["Deserialize","data","from","an","inference","endpoint","into","a","list","of","lists",".","Args",":","stream","(","botocore.response.StreamingBody",")",":","Data","to","be","deserialized",".","content_type","(","str",")",":","The","MIME","type","of","the","data",".","Returns",":","list",":","The","data","deserialized","into","a","list","of","lists","representing","the","contents","of","a","CSV","file","."]
code: def deserialize(self, stream, content_type):
      """Deserialize data from an inference endpoint into a list of lists.
  
      Args:
          stream (botocore.response.StreamingBody): Data to be deserialized.
          content_type (str): The MIME type of the data.
  
      Returns:
          list: The data deserialized into a list of lists representing the
              contents of a CSV file.
      """
      try:
          decoded_string = stream.read().decode(self.encoding)
          return list(csv.reader(decoded_string.splitlines()))
      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 CSVDeserializer obj's underlying member method code with example usage: obj.deserialize(stream, content_type) and returns: list