def get_lang(langdict, lang):
    if lang:
        if lang == 'all':
            return langdict
        else:
            # Return where key = lang
            try:
                return {lang:langdict[lang]}
            except __HOLE__:
                pass
    first = langdict.iteritems().next()      
    return {first[0]:first[1]}
dataset/ETHPy150Open adlnet/ADL_LRS/lrs/utils/__init__.py/get_lang