def verify_directory(directory_name, directory_location, directory_create=False):
if not directory_create:<EOL><INDENT>return __os.path.exists(__os.path.join(directory_location, directory_name))<EOL><DEDENT>elif directory_create:<EOL><INDENT>good = __os.path.exists(__os.path.join(directory_location, directory_name))<EOL>if not good:<EOL><INDENT>__os.mkdir(__os.path.join(directory_location, directory_name))<EOL><DEDENT><DEDENT>
Function to verify if a directory exists
Args:
    directory_name: The name of directory to check
    directory_location: The location of the directory, derive from the os module
    directory_create: If you want to create the directory

Returns: returns boolean True or False, but if you set directory_create to True it will create the directory