with pytest.raises(ValueError):
// Test setting incompatible distribution: CategoricalDistribution in different order.
storage.set_trial_param(
trial_id_2, "y", 2, CategoricalDistribution(choices=("Meguro", "Shibuya", "Ebisu")))
// Setup trial_3: different study from trial_1.
if isinstance(storage, InMemoryStorage):