code: def rename_key(state_dict, old, new):
      val = state_dict.pop(old)
      state_dict[new] = val
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/src/transformers/models/table_transformer/convert_table_transformer_original_pytorch_checkpoint_to_pytorch.py
imports: import argparse
  from collections import OrderedDict
  from pathlib import Path
  import torch
  from PIL import Image
  from torchvision.transforms import functional
  from huggingface_hub import hf_hub_download
  from transformers import DetrFeatureExtractor, TableTransformerConfig, TableTransformerForObjectDetection
  from transformers.utils import logging
label_desc: Use image node_id 1 for calling a global function with example usage: rename_key(state_dict, old, new) without return types