def METHOD_NAME(self, path: str, name: str) -> str:
    if not os.path.exists(path):
        os.makedirs(path)
    if not os.path.isdir(path):
        raise Exception(f"Planemo {name} directory [{path}] unavailable.")
    return path