src/transformers/models/bigbird_pegasus/convert_bigbird_pegasus_tf_to_pytorch.py/rename_state_dict_key
def rename_state_dict_key(k, patterns):
    for tf_name, hf_name in patterns:
        k = k.replace(tf_name, hf_name)
    return k