def METHOD_NAME(objective, jobConfig):
    study_name = jobConfig['training']['study_name']
    storage_url = jobConfig['training']['storage']
    load_if_exists = jobConfig['training']['load_if_exists']
    storage_timeout = jobConfig['training']['storage_timeout']
    seed = jobConfig['numerical_settings']['seed']
    direction = jobConfig['training']['direction']
    logDir = objective.objConfig['log_dir']
    logHead = objective.objConfig['log_head']
    if storage_url:
        storage = optuna.storages.RDBStorage(
        url=storage_url,
        engine_kwargs={"connect_args": {"timeout": storage_timeout}},
        )
    else:
        storage = None
    study = create_study(seed=seed, direction=direction, storage=storage, study_name=study_name, load_if_exists=load_if_exists)
    logHead = logHead + str(study.best_trial.number) + ']'
    logging.info(logHead)
    Path(logDir).mkdir(parents=True, exist_ok=True)
    objective(study.best_trial)