def _image_directories():
<EOL>result_dir = os.path.join(basedir, '<STR_LIT>','<STR_LIT:.>')<EOL>baseline_dir = os.path.join(basedir, '<STR_LIT>','<STR_LIT:.>')<EOL>if not os.path.exists(result_dir):<EOL><INDENT>cbook.mkdirs(result_dir)<EOL><DEDENT>return baseline_dir, result_dir<EOL>
Compute the baseline and result image directories for testing *func*.
Create the result directory if it doesn't exist.