class_docstr: Serialize a NumPy array for an inference request.
class_docstr_tok: ["Serialize","a","NumPy","array","for","an","inference","request","."]
docstr: Initialize a ``RecordSerializer`` instance.
  
  Args:
      content_type (str): The MIME type to signal to the inference endpoint when sending
          request data (default: "application/x-recordio-protobuf").
docstr_tok: ["Initialize","a","``","RecordSerializer","``","instance",".","Args",":","content_type","(","str",")",":","The","MIME","type","to","signal","to","the","inference","endpoint","when","sending","request","data","(","default",":","``","application\/x-recordio-protobuf","''",")","."]
code: def __init__(self, content_type="application/x-recordio-protobuf"):
      """Initialize a ``RecordSerializer`` instance.
  
      Args:
          content_type (str): The MIME type to signal to the inference endpoint when sending
              request data (default: "application/x-recordio-protobuf").
      """
      super(RecordSerializer, self).__init__(content_type=content_type)
  
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 1 to create a new RecordSerializer object from inherited base classes: SimpleBaseSerializer with example: obj = RecordSerializer(content_type)