def METHOD_NAME(cls, v: List[str], values: Dict[str, Any]) -> List[str]:
    """Set the value of ``tags``."""
    if v:
        return v
    image: Optional[DockerImage] = values.get("image")
    if image:
        return image.tags
    return ["latest"]