def run_basic_test(config_file: str, model_def_file: str, expected_trials: Optional[int], create_args: Optional[List[str]]=None, max_wait_secs: int=conf.DEFAULT_MAX_WAIT_SECS) -> int:
    assert os.path.isdir(model_def_file)
    experiment_id = create_experiment(config_file, model_def_file, create_args)
    wait_for_experiment_state(experiment_id, 'COMPLETED', max_wait_secs=max_wait_secs)
    assert (num_active_trials(experiment_id) == 0)
    verify_completed_experiment_metadata(experiment_id, expected_trials)
    return experiment_id
def run_basic_test(config_file: str, model_def_file: str, expected_trials: Optional[int], create_args: Optional[List[str]]=None, max_wait_secs: int=conf.DEFAULT_MAX_WAIT_SECS) -> int:
    assert os.path.isdir(model_def_file)
    experiment_id = create_experiment(config_file, model_def_file, create_args)
    wait_for_experiment_state(experiment_id, 'COMPLETED', max_wait_secs=max_wait_secs)
    assert (num_active_trials(experiment_id) == 0)
    verify_completed_experiment_metadata(experiment_id, expected_trials)
    return experiment_id