def create_dir(path):
if os.path.exists(path):<EOL><INDENT>if not os.path.isdir(path):<EOL><INDENT>logger.error('<STR_LIT>', path)<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>else:  <EOL><INDENT>pass<EOL><DEDENT><DEDENT>else:<EOL><INDENT>os.makedirs(path)<EOL>logger.info('<STR_LIT>', path)<EOL><DEDENT>
Create dir with the path

    :param path: The path to be created
    :type path: str