code: def convert_state_dict_to_hf(state_dict):
      new_state_dict = {}
      for key, value in state_dict.items():
          for key_to_modify, new_key in KEYS_TO_MODIFY_MAPPING.items():
              if key_to_modify in key:
                  key = key.replace(key_to_modify, new_key)
  
          new_state_dict[key] = value
      return new_state_dict
  
imports: import argparse
  import torch
  from huggingface_hub import hf_hub_download
  from transformers import AddedToken, AutoConfig, AutoTokenizer, CLIPImageProcessor, LlavaConfig, LlavaForConditionalGeneration, LlavaProcessor
label_desc: Use image node_id 1 for calling a global function with example usage: convert_state_dict_to_hf(state_dict) and returns: new_state_dict