def maybe_create_experiment(config_file: str, model_def_file: str, create_args: Optional[List[str]]=None) -> subprocess.CompletedProcess:
    command = ['det', '-m', conf.make_master_url(), 'experiment', 'create', config_file, model_def_file]
    if (create_args is not None):
        command += create_args
    env = os.environ.copy()
    env['DET_DEBUG'] = 'true'
    return subprocess.run(command, universal_newlines=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env)
def maybe_create_experiment(config_file: str, model_def_file: str, create_args: Optional[List[str]]=None) -> subprocess.CompletedProcess:
    command = ['det', '-m', conf.make_master_url(), 'experiment', 'create', config_file, model_def_file]
    if (create_args is not None):
        command += create_args
    env = os.environ.copy()
    env['DET_DEBUG'] = 'true'
    return subprocess.run(command, universal_newlines=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env)