def METHOD_NAME():
    settings = frappe.get_doc("Item Variant Settings")
    fields_to_add = ITEM_VARIANT_FIELDNAMES - {
        row.field_name for row in settings.fields
    }
    for fieldname in fields_to_add:
        settings.append("fields", {"field_name": fieldname})
    settings.save()