def remove_pretrained_embedding_params(params: Params):
    """This function only exists for backwards compatibility.
    Please use `remove_weights_related_keys_from_params()` instead."""
    remove_keys_from_params(params, ["pretrained_file"])
This function only exists for backwards compatibility.
Please use `remove_weights_related_keys_from_params()` instead.
allennlp/models/model.py