code: def get_guider_config(params: SamplingParams):
      if params.guider == Guider.IDENTITY:
          guider_config = {
              "target": "sgm.modules.diffusionmodules.guiders.IdentityGuider"
          }
      elif params.guider == Guider.VANILLA:
          scale = params.scale
  
          thresholder = params.thresholder
  
          if thresholder == Thresholder.NONE:
              dyn_thresh_config = {
                  "target": "sgm.modules.diffusionmodules.sampling_utils.NoDynamicThresholding"
              }
          else:
              raise NotImplementedError
  
          guider_config = {
              "target": "sgm.modules.diffusionmodules.guiders.VanillaCFG",
              "params": {
                  "scale": scale,
                  "dyn_thresh_config": dyn_thresh_config,
              },
          }
      else:
          raise NotImplementedError
      return guider_config
  
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 1 for calling a global function with example usage: get_guider_config(params) and returns: guider_config