See https://github.com/optuna/optuna/pull/2526
See optuna/optuna#2526