def METHOD_NAME(
    getter: Callable[[], type],
    setter: Callable[[type], None],
    valid_type_1: type,
    valid_type_2: type,
) -> None:
    if valid_type_1 == valid_type_2:
        raise ValueError("cannot test config setting/getting when both types are equal")
    setter(valid_type_1)
    assert getter() == valid_type_1
    setter(valid_type_2)
    assert getter() == valid_type_2