def versions_from_parentdir(parentdir_prefix, root, verbose=False):
<EOL>dirname = os.path.basename(root)<EOL>if not dirname.startswith(parentdir_prefix):<EOL><INDENT>if verbose:<EOL><INDENT>print("<STR_LIT>" %<EOL>(root, dirname, parentdir_prefix))<EOL><DEDENT>return None<EOL><DEDENT>version = dirname[len(parentdir_prefix):]<EOL>return { "<STR_LIT>": version,<EOL>"<STR_LIT>": version,<EOL>"<STR_LIT>": version,<EOL>}<EOL>
Return a dictionary of values derived from the name of our parent 
    directory (useful when a thoughtfully-named directory is created from an 
    archive). This is the fourth attempt to find information by get_versions().