class_docstr: Deserialize RecordIO Protobuf data from an inference endpoint.
class_docstr_tok: ["Deserialize","RecordIO","Protobuf","data","from","an","inference","endpoint","."]
docstr: Deserialize RecordIO Protobuf data from an inference endpoint.
  
  Args:
      data (object): The protobuf message to deserialize.
      content_type (str): The MIME type of the data.
  Returns:
      list: A list of records.
docstr_tok: ["Deserialize","RecordIO","Protobuf","data","from","an","inference","endpoint",".","Args",":","data","(","object",")",":","The","protobuf","message","to","deserialize",".","content_type","(","str",")",":","The","MIME","type","of","the","data",".","Returns",":","list",":","A","list","of","records","."]
code: def deserialize(self, data, content_type):
      """Deserialize RecordIO Protobuf data from an inference endpoint.
  
      Args:
          data (object): The protobuf message to deserialize.
          content_type (str): The MIME type of the data.
      Returns:
          list: A list of records.
      """
      try:
          return read_records(data)
      finally:
          data.close()
  
imports: from __future__ import absolute_import
  import io
  import logging
  import struct
  import sys
  import numpy
  from sagemaker.amazon.record_pb2 import Record
  from sagemaker.deprecations import deprecated_class
  from sagemaker.deserializers import SimpleBaseDeserializer
  from sagemaker.serializers import SimpleBaseSerializer
  from sagemaker.utils import DeferredError
label_desc: Use image node_id 2 for calling the RecordDeserializer obj's underlying member method code with example usage: obj.deserialize(data, content_type) and returns: read_records