def METHOD_NAME(languages):
    if not languages:
        return
    if not isinstance(languages, list):
        languages = [languages]
    all_scripts = []
    for language in languages:
        if language in language2scripts:
            METHOD_NAME = language2scripts[language]
        elif '_' in language:
            l = language.split('_')[0]
            METHOD_NAME = language2scripts[l]
        if not METHOD_NAME:
            return
        all_scripts += METHOD_NAME
    return list(set(all_scripts))