def makedirs(path):
    path = str(path)  # compatibility with pathlib
    if not os.path.exists(path):
        os.makedirs(path)
os.makedirs() has an exist_ok param, but it still throws errors when the
dataset/ETHPy150Open buildinspace/peru/peru/compat.py/makedirs