class_docstr: Abstract base class for creation of new serializers.
  
  Provides a skeleton for customization requiring the overriding of the method
  serialize and the class attribute CONTENT_TYPE.
docstr: Serialize data into the media type specified by CONTENT_TYPE.
  
  Args:
      data (object): Data to be serialized.
  
  Returns:
      object: Serialized data used for a request.
docstr_tok: ["Serialize","data","into","the","media","type","specified","by","CONTENT_TYPE",".","Args",":","data","(","object",")",":","Data","to","be","serialized",".","Returns",":","object",":","Serialized","data","used","for","a","request","."]
code: def serialize(self, data):
      """Serialize data into the media type specified by CONTENT_TYPE.
  
      Args:
          data (object): Data to be serialized.
  
      Returns:
          object: Serialized data used for a request.
      """
  
imports: from __future__ import absolute_import
  import abc
  from collections.abc import Iterable
  import csv
  import io
  import json
  import numpy
  from pandas import DataFrame
  from six import with_metaclass
  from sagemaker.utils import DeferredError
label_desc: Use image node_id 1 for calling the BaseSerializer obj's underlying member method code with example usage: obj.serialize(data) without return types