code: def init_from_ckpt(self, path, ignore_keys=list()):
      sd = torch.load(path, map_location="cpu")["state_dict"]
      keys = list(sd.keys())
      for k in keys:
          for ik in ignore_keys:
              if k.startswith(ik):
                  print("Deleting key {} from state_dict.".format(k))
                  del sd[k]
      self.load_state_dict(sd, strict=False)
      print(f"Restored from {path}")
  
imports: from contextlib import contextmanager
  import pytorch_lightning
  import torch
  import torch.nn.functional
  from nemo.collections.multimodal.modules.stable_diffusion.diffusionmodules.model import Decoder, Encoder
  from nemo.collections.multimodal.modules.stable_diffusion.distributions.distributions import DiagonalGaussianDistribution
  from nemo.collections.multimodal.parts.stable_diffusion.utils import instantiate_from_config
label_desc: Use image node_id 5 for calling the AutoencoderKL obj's underlying member method code with example usage: obj.init_from_ckpt(path, ignore_keys) without return types