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