code: def get_sd_model(self):
      if self.was_loaded_at_least_once:
          return self.sd_model
  
      if self.sd_model is None:
          with self.lock:
              if (
                  self.sd_model is not None
                  or self.was_loaded_at_least_once
              ):
                  return self.sd_model
  
              try:
                  load_model()
  
              except Exception as e:
                  errors.display(
                      e,
                      "loading stable diffusion model",
                      full_traceback=True,
                  )
                  print("", file=sys.stderr)
                  print(
                      "Stable diffusion model failed to load",
                      file=sys.stderr,
                  )
                  self.sd_model = None
  
      return self.sd_model
  
imports: import collections
  import os.path
  import sys
  import threading
  import torch
  import re
  import safetensors.torch
  from omegaconf import OmegaConf, ListConfig
  from os import mkdir
  from urllib import request
  import ldm.modules.midas
  from ldm.util import instantiate_from_config
  from modules import paths, shared, modelloader, devices, script_callbacks, sd_vae, sd_disable_initialization, errors, hashes, sd_models_config, sd_unet, sd_models_xl, cache, extra_networks, processing, lowvram, sd_hijack, patches
  from modules.timer import Timer
  import tomesd
  import numpy
label_desc: Use image node_id 2 for calling the SdModelData obj's underlying member method code with example usage: obj.get_sd_model() and returns: self, self, self