def METHOD_NAME(
    translations: Optional[Dict[str, str]], langs: LangsNegociation
) -> Optional[Dict[str, str]]:
    if not translations:
        return None
    elif langs is None:
        return translations
    else:
        for lang in langs:
            if lang in translations:
                return {"auto": translations[lang]}
        if "en" in translations:
            return {"auto": translations["en"]}
        else:
            return {"auto": list(translations.values())[0]}