def get_output_dir(name, phase):
    'Return the directory where experimental artifacts are placed.\n    If the directory does not exist, it is created.\n    A canonical path is built using the name from an imdb and a network\n    (if not None).\n    '
    filedir = os.path.join(name, phase)
    if (not os.path.exists(filedir)):
        os.makedirs(filedir)
    return filedir
Return the directory where experimental artifacts are placed.
If the directory does not exist, it is created.
A canonical path is built using the name from an imdb and a network
(if not None).
def get_output_dir(name, phase):
    'Return the directory where experimental artifacts are placed.\n    If the directory does not exist, it is created.\n    A canonical path is built using the name from an imdb and a network\n    (if not None).\n    '
    filedir = os.path.join(name, phase)
    if (not os.path.exists(filedir)):
        os.makedirs(filedir)
    return filedir