def cache_fname(img, backend, light, cache_dir, sat="<STR_LIT>"):
color_type = "<STR_LIT>" if light else "<STR_LIT>"<EOL>file_name = re.sub("<STR_LIT>", "<STR_LIT:_>", img)<EOL>file_size = os.path.getsize(img)<EOL>file_parts = [file_name, color_type, backend,<EOL>sat, file_size, __cache_version__]<EOL>return [cache_dir, "<STR_LIT>", "<STR_LIT>" % (*file_parts,)]<EOL>
Create the cache file name.