class_docstr: Context manager that allows to read parameters from state_dict into a model that has some of its parameters in the meta device.
  As those parameters are read from state_dict, they will be deleted from it, so by the end state_dict will be mostly empty, to save memory.
  Meant to be used together with InitializeOnMeta above.
  
  Usage:
  ```
  with sd_disable_initialization.LoadStateDictOnMeta(state_dict):
      model.load_state_dict(state_dict, strict=False)
  ```
code: def get_weight_dtype(self, key):
      key_first_term, _ = key.split(".", 1)
      return self.weight_dtype_conversion.get(
          key_first_term, self.default_dtype
      )
  
imports: import ldm.modules.encoders.modules
  import open_clip
  import torch
  import transformers.utils.hub
  from modules import shared
label_desc: Use image node_id 2 for calling the LoadStateDictOnMeta obj's underlying member method code with example usage: obj.get_weight_dtype(key) and returns: self