def METHOD_NAME(self):
    content = getattr(self.dataset, self.format, "")
    buffer = io.StringIO() if type(content) == str else io.BytesIO()
    buffer.write(content)
    return ContentFile(buffer.getvalue(), name=f"{self.resource}.{self.format}")