def METHOD_NAME():
    """Ask for isolation options and isolate elements"""
    element_cats = isolate_config.load_configs()
    select_options = sorted(x.Name for x in element_cats) + [
        "Room Tags",
        "Model Groups",
        "Painted Elements",
        "Model Elements",
    ]
    selected_switch = forms.CommandSwitchWindow.show(
        select_options, message="Temporarily isolate elements of type:"
    )
    if selected_switch:
        curview = revit.active_view
        with revit.TransactionGroup("Isolate {}".format(selected_switch)):
            with revit.Transaction("Reset temporary hide/isolate"):
                # reset temporary hide/isolate before filtering elements
                curview.DisableTemporaryViewMode(
                    DB.TemporaryViewMode.TemporaryHideIsolate
                )
            element_to_isolate = get_isolation_elements(selected_switch)
            with revit.Transaction("Isolate {}".format(selected_switch)):
                # now that list of elements is ready,
                # let's isolate them in the active view
                curview.IsolateElementsTemporary(element_to_isolate)