def run_basic_test_with_temp_config(config: Dict[(Any, Any)], model_def_path: str, expected_trials: Optional[int], create_args: Optional[List[str]]=None, max_wait_secs: int=conf.DEFAULT_MAX_WAIT_SECS) -> int:
    with tempfile.NamedTemporaryFile() as tf:
        with open(tf.name, 'w') as f:
            yaml.dump(config, f)
        experiment_id = run_basic_test(tf.name, model_def_path, expected_trials, create_args, max_wait_secs=max_wait_secs)
    return experiment_id
def run_basic_test_with_temp_config(config: Dict[(Any, Any)], model_def_path: str, expected_trials: Optional[int], create_args: Optional[List[str]]=None, max_wait_secs: int=conf.DEFAULT_MAX_WAIT_SECS) -> int:
    with tempfile.NamedTemporaryFile() as tf:
        with open(tf.name, 'w') as f:
            yaml.dump(config, f)
        experiment_id = run_basic_test(tf.name, model_def_path, expected_trials, create_args, max_wait_secs=max_wait_secs)
    return experiment_id