code: def rename_state_dict_key(k, patterns):
      for tf_name, hf_name in patterns:
          k = k.replace(tf_name, hf_name)
      return k
  
file_path: transformers/src/transformers/models/bigbird_pegasus/convert_bigbird_pegasus_tf_to_pytorch.py
imports: import argparse
  from typing import Dict
  import tensorflow
  import torch
  from tqdm import tqdm
  from transformers import BigBirdPegasusConfig, BigBirdPegasusForConditionalGeneration
label_desc: Use image node_id 1 for calling a global function with example usage: rename_state_dict_key(k, patterns) and returns: k