import pycountry


def get_language_name(languagecode):
    try:
        if len(languagecode) == 2:
            return pycountry.languages.get(alpha_2=languagecode).name
        elif len(languagecode) == 3:
            return pycountry.languages.get(alpha_3=languagecode).name
        return languagecode
    except Exception:
        return languagecode

9b53d8c3b0c18676e15a3846a0bbd0577fb206a7
<mask token>

<mask token>


def get_language_name(languagecode):
    try:
        if len(languagecode) == 2:
            return pycountry.languages.get(alpha_2=languagecode).name
        elif len(languagecode) == 3:
            return pycountry.languages.get(alpha_3=languagecode).name
        return languagecode
    except Exception:
        return languagecode

import pycountry


def get_language_name(languagecode):
    try:
        if len(languagecode) == 2:
            return pycountry.languages.get(alpha_2=languagecode).name
        elif len(languagecode) == 3:
            return pycountry.languages.get(alpha_3=languagecode).name
        return languagecode
    except Exception:
        return languagecode
