code: def load_vae_dict(filename, map_location):
      vae_ckpt = sd_models.read_state_dict(
          filename, map_location=map_location
      )
      vae_dict_1 = {
          k: v
          for k, v in vae_ckpt.items()
          if k[0:4] != "loss" and k not in vae_ignore_keys
      }
      return vae_dict_1
  
imports: import os
  import collections
  from dataclasses import dataclass
  from modules import paths, shared, devices, script_callbacks, sd_models, extra_networks, lowvram, sd_hijack, hashes
  import glob
  from copy import deepcopy
label_desc: Use image node_id 15 for calling a global function with example usage: load_vae_dict(filename, map_location) and returns: vae_dict_1