def hash_tag(source_entity, context):
    if type(context) == list:
        if context:
            keys = [source_entity] + context
        else:
            keys = [source_entity, '']
    else:
        if context == 'None':
            keys = [source_entity, '']
        else:
            keys = [source_entity, context]
    return md5_constructor(':'.join(keys).encode('utf-8')).hexdigest()
Calculate the md5 hash of the (source_entity, context).
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/resources/formats/utils/hash_tag.py/hash_tag