def METHOD_NAME(trial_type: type) -> None:
    trial = _create_trial(
        trial_type=trial_type,
        params={"x": 0.99},
        distributions={"x": FloatDistribution(0.1, 1.0, log=True)},
    )
    assert trial.suggest_loguniform("x", 0.1, 1.0) == 0.99
    with pytest.raises(ValueError):
        trial.suggest_loguniform("y", 0.0, 1.0)