code: def convert_unet_state_dict_to_peft(state_dict):
      r"""
      Converts a state dict from UNet format to diffusers format - i.e. by removing some keys
      """
      mapping = UNET_TO_DIFFUSERS
      return convert_state_dict(state_dict, mapping)
  
imports: import enum
label_desc: Use image node_id 4 for calling a global function with example usage: convert_unet_state_dict_to_peft(state_dict) and returns: convert_state_dict