code: def _load_model(self, device="cuda", use_fp16=True):
      config = OmegaConf.load(self.config)
      model = load_model_from_config(config, self.ckpt)
      if model is None:
          raise ValueError(f"Model {self.model_id} could not be loaded")
      model.to(device)
      if use_fp16:
          model.conditioner.half()
          model.model.half()
      return model
  
imports: import pathlib
  from dataclasses import asdict, dataclass
  from enum import Enum
  from typing import Optional
  from omegaconf import OmegaConf
  from sgm.inference.helpers import Img2ImgDiscretizationWrapper, do_img2img, do_sample
  from sgm.modules.diffusionmodules.sampling import DPMPP2MSampler, DPMPP2SAncestralSampler, EulerAncestralSampler, EulerEDMSampler, HeunEDMSampler, LinearMultistepSampler
  from sgm.util import load_model_from_config
label_desc: Use image node_id 2 for calling the SamplingPipeline obj's underlying member method code with example usage: obj._load_model(device, use_fp16) and returns: model