def METHOD_NAME():
    rs = ReaderStudyFactory()
    ci = ComponentInterfaceFactory(
        kind=InterfaceKind.InterfaceKindChoices.BOOL
    )
    civ = ComponentInterfaceValueFactory(interface=ci, value=True)
    ds = DisplaySetFactory(reader_study=rs)
    ds.values.add(civ)
    del ds.is_editable
    civ2 = ComponentInterfaceValueFactory(interface=ci, value=True)
    ds.values.remove(civ)
    ds.values.add(civ2)
    assert ds.values.count() == 1
    assert ds.values.first() == civ2
    q = QuestionFactory(reader_study=rs)
    AnswerFactory(question=q, display_set=ds)
    del ds.is_editable
    with pytest.raises(ValidationError):
        with transaction.atomic():
            ds.values.remove(civ2)
    assert ds.values.count() == 1
    assert ds.values.first() == civ2