dictionary: New function dict_get_weight_format().