def mkdir_p(path):
    """Emulate mkdir -p in Python"""
    try:
        os.makedirs(path)
    except __HOLE__ as exc:  # Python >2.5
        if exc.errno == errno.EEXIST:
            pass
        else: raise
dataset/ETHPy150Open livenson/vcdm/src/vcdm/utils.py/mkdir_p