from hashlib import md5
if isinstance(context, list):
if context:
keys = [string_key] + context
else:
keys = [string_key, '']
else:
if context == 'None':
keys = [string_key, '']
else:
keys = [string_key, context]
return md5(':'.join(keys).encode('utf-8')).hexdigest()