def METHOD_NAME(self, context):
    if "thumbnailPath" in context.data:
        return
    thumbnail_source = context.data.get("thumbnailSource")
    thumbnail_path = self._create_thumbnail(context, thumbnail_source)
    context.data["thumbnailPath"] = thumbnail_path