import io


def downloaded_image(post_image):
    """Return mock `PostImage` class with downloaded image content."""
    post_image.mime_type = "image/gif"
    post_image.image_content = io.BytesIO(b"GIF89a")

    return post_image