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