def available_codes(weights: str = "m2m100") -> List[str]:
    """
    *Get all the codes available for a given model. The code format will depend on the model you select.*

    {{params}}
    {{weights}} The name of the model you are using. For example, "mbart50" is the multilingual BART Large with 50 codes available to use.
    """
    return _dict_from_weights(weights)["codes"]
*Get all the codes available for a given model. The code format will depend on the model you select.*

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