code: def _pack(self, content):
          
          if self.serializer:
              content = self.serializer.serialize(content)
          if self.compressor:
              content = self.compressor.compress(content)
          return content
docs: pack the content using serializer and compressor