def METHOD_NAME(self, value):
    index = super().METHOD_NAME(value)
    if index is None:
        return None
    if not index.startswith(IMAGE_TYPE):
        raise serializers.ValidationError(f"Invalid index name `{value}`.")
    return index