human
check if a directory exists and create it if necessary
assistant
Here is some code to check if a directory `path` exists and create it if necessary

distutils.dir_util.mkpath(path)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.