def own_or_crowdsourced_translation(user, word: str, from_lang_code: str, context: str):
    own_past_translation = get_own_past_translation(user, word, from_lang_code, context)
    if own_past_translation:
        translations = [{'translation': own_past_translation, 'service_name': 'Own Last Translation', 'quality': 100}]
        return translations
    others_past_translation = get_others_past_translation(word, from_lang_code, context)
    if others_past_translation:
        translations = [{'translation': others_past_translation, 'service_name': 'Contributed Translation', 'quality': 100}]
        return translations
    return None
def own_or_crowdsourced_translation(user, word: str, from_lang_code: str, context: str):
    own_past_translation = get_own_past_translation(user, word, from_lang_code, context)
    if own_past_translation:
        translations = [{'translation': own_past_translation, 'service_name': 'Own Last Translation', 'quality': 100}]
        return translations
    others_past_translation = get_others_past_translation(word, from_lang_code, context)
    if others_past_translation:
        translations = [{'translation': others_past_translation, 'service_name': 'Contributed Translation', 'quality': 100}]
        return translations
    return None