def get_cache_fname(image_id):
 return hashlib.sha1(image_id.encode('utf-8')).hexdigest()

def get_cache_fname ( image_id ) : return hashlib . sha1 ( image_id . encode ( 'utf-8' ) ) . hexdigest ( )
return a filename based on the sha1 hash of a given image id .