def METHOD_NAME(self):
    """Persists specific data onto an s3 bucket.
    This method assumes versioned is handled on the bucket itself.
    """
    _logger.info(f"persisting {self.key} {self.output_dir}")
    with open(os.path.join(self.output_dir, self.key), "wb") as f:
        # hack to allow the local writer to take either bytes or a string
        # note this assumes that all strings are given in utf-8 and not,
        # like, ASCII
        f.write(self.body.encode("UTF-8") if isinstance(self.body, str) else self.body)