class_docstr: Deserialize a stream of bytes into a bytes object.
class_docstr_tok: ["Deserialize","a","stream","of","bytes","into","a","bytes","object","."]
docstr: Read a stream of bytes returned from an inference endpoint.
  
  Args:
      stream (botocore.response.StreamingBody): A stream of bytes.
      content_type (str): The MIME type of the data.
  
  Returns:
      bytes: The bytes object read from the stream.
docstr_tok: ["Read","a","stream","of","bytes","returned","from","an","inference","endpoint",".","Args",":","stream","(","botocore.response.StreamingBody",")",":","A","stream","of","bytes",".","content_type","(","str",")",":","The","MIME","type","of","the","data",".","Returns",":","bytes",":","The","bytes","object","read","from","the","stream","."]
code: def deserialize(self, stream, content_type):
      """Read a stream of bytes returned from an inference endpoint.
  
      Args:
          stream (botocore.response.StreamingBody): A stream of bytes.
          content_type (str): The MIME type of the data.
  
      Returns:
          bytes: The bytes object read from the stream.
      """
      try:
          return stream.read()
      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 1 for calling the BytesDeserializer obj's underlying member method code with example usage: obj.deserialize(stream, content_type) and returns: stream