def METHOD_NAME(empty_study: FileStudy, command_context: CommandContext):
    study_path = empty_study.config.study_path
    area1 = "Area1"
    area1_id = transform_name_to_id(area1)
    CreateArea.parse_obj(
        {
            "area_name": area1,
            "command_context": command_context,
        }
    ).apply(empty_study)
    update_settings_command = UpdateConfig(
        target="settings/generaldata/optimization/simplex-range",
        data="day",
        command_context=command_context,
    )
    output = update_settings_command.apply(empty_study)
    assert output.status
    generaldata = MultipleSameKeysIniReader().read(study_path / "settings/generaldata.ini")
    assert generaldata["optimization"]["simplex-range"] == "day"
    assert generaldata["optimization"]["transmission-capacities"]
    update_settings_command = UpdateConfig(
        target=f"input/areas/{area1_id}/optimization/nodal optimization/other-dispatchable-power",
        data=False,
        command_context=command_context,
    )
    output = update_settings_command.apply(empty_study)
    assert output.status
    area_config = MultipleSameKeysIniReader().read(study_path / f"input/areas/{area1_id}/optimization.ini")
    assert not area_config["nodal optimization"]["other-dispatchable-power"]
    # test UpdateConfig with byte object which is necessary with the API PUT /v1/studies/{uuid}/raw
    data = json.dumps({"first_layer": {"0": "Nothing"}}).encode("utf-8")
    command = UpdateConfig(
        target="layers/layers",
        data=data,
        command_context=command_context,
    )
    command.apply(empty_study)
    layers = MultipleSameKeysIniReader().read(study_path / "layers/layers.ini")
    assert layers == {"first_layer": {"0": "Nothing"}}
    new_data = json.dumps({"1": False}).encode("utf-8")
    command = UpdateConfig(
        target="layers/layers/first_layer",
        data=new_data,
        command_context=command_context,
    )
    command.apply(empty_study)
    layers = MultipleSameKeysIniReader().read(study_path / "layers/layers.ini")
    assert layers == {"first_layer": {"1": False}}