def find_cache_directory(remote):
return os.path.join('<STR_LIT>' if os.access('<STR_LIT>', os.W_OK) else tempfile.gettempdir(),<EOL>urlparse.quote(remote, safe='<STR_LIT>'))<EOL>
Find the directory where temporary local checkouts are to be stored.

:returns: The absolute pathname of a directory (a string).