code: def rename_state_dict_key(k):
      for pegasus_name, hf_name in PATTERNS:
          k = k.replace(pegasus_name, hf_name)
      return k
  
file_path: transformers/src/transformers/models/pegasus/convert_pegasus_tf_to_pytorch.py
imports: import argparse
  import os
  from pathlib import Path
  from typing import Dict
  import tensorflow
  import torch
  from tqdm import tqdm
  from transformers import PegasusConfig, PegasusForConditionalGeneration, PegasusTokenizer
  from transformers.models.pegasus.configuration_pegasus import DEFAULTS, task_specific_params
label_desc: Use image node_id 1 for calling a global function with example usage: rename_state_dict_key(k) and returns: k