def METHOD_NAME(image):
    if title := image.get("content", {}).get("rendered"):
        try:
            title = html.fromstring(title).text_content()
        except UnicodeDecodeError as e:
            logger.warning(f"Can't save the image's title ('{title}') due to {e}")
            return None
    return title