def mkdir_p(dirname):
    assert dirname is not None
    if dirname == '':
        return
    try:
        os.makedirs(dirname)
    except __HOLE__ as e:
        if e.errno != 17:
            raise e
dataset/ETHPy150Open ppwwyyxx/tensorpack/tensorpack/utils/fs.py/mkdir_p