code: def _serialize_dict(cls, data):
          '''
          serializes a dictionary
  
          :param data: data to serialize
          '''
          return b64encode(zlib.compress(cPickle.dumps(data, protocol=2))).decode(f _serialize_dict(cls, data):
          '''
          serializes a dictionary
  
          :param data: data to serialize
          '''
          return b64encode(zlib.compress(cPickle.dumps(data, protocol=2))).decode()
docs: serializes a dictionary
  
          :param data: data to serialize