def METHOD_NAME(
    monkeypatch: MonkeyPatch, twilio_config: dict[str, str]
):
    setenvs_from_dict(
        monkeypatch,
        {
            "LOGIN_REGISTRATION_CONFIRMATION_REQUIRED": "1",
            "LOGIN_REGISTRATION_INVITATION_REQUIRED": "0",
            **twilio_config,
        },
    )
    assert LoginSettingsForProduct.create_from_envs(LOGIN_2FA_REQUIRED=1)