def get_lang_code_map(weights: str = "m2m100") -> Dict[str, str]:
    """
    *Get a dictionary mapping a language -> code for a given model. The code will depend on the model you choose.*

    {{params}}
    {{weights}} The name of the model you are using. For example, "mbart50" is the multilingual BART Large with 50 languages available to use.
    """
    return _dict_from_weights(weights)["pairs"]
*Get a dictionary mapping a language -> code for a given model. The code will depend on the model you choose.*

{{params}}
{{weights}} The name of the model you are using. For example, "mbart50" is the multilingual BART Large with 50 languages available to use.
dl_translate/utils.py