code: def from_string(cls, id, format, raw_content, compressed=False,
                      encoded=False):
          
          content = cls(id, format, compressed, encoded)
          content._raw_content = raw_content
          return content
docs: Create a Content object from string/bytes content.