def _makedirs(path):
dirname, _ = os.path.split(path)<EOL>try:<EOL><INDENT>os.makedirs(dirname)<EOL><DEDENT>except OSError as exc:<EOL><INDENT>if exc.errno == errno.EEXIST:<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>raise<EOL><DEDENT><DEDENT>
Create a base directory of the provided path and return None.

:param path: A string containing a path to be deconstructed and basedir
 created.
:return: None