code: def rename_backbone_keys(state_dict):
      new_state_dict = OrderedDict()
      for key, value in state_dict.items():
          if "backbone.0.body" in key:
              new_key = key.replace(
                  "backbone.0.body", "backbone.conv_encoder.model"
              )
              new_state_dict[new_key] = value
          else:
              new_state_dict[key] = value
  
      return new_state_dict
  
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 2 for calling a global function with example usage: rename_backbone_keys(state_dict) and returns: new_state_dict