def METHOD_NAME(parent, icon, txt, chk) :
    obj = create_text(parent, icon, txt, LV_MENU_ITEM_BUILDER_VARIANT_1)
    sw = lv.switch(obj)
    if chk == lv.STATE.CHECKED:
        sw.add_state(chk )
    else:
        sw.add_state(0)
    return obj