code: def _get_connected_pipeline(pipeline_cls):
      # for now connected pipelines can only be loaded from decoder pipelines, such as kandinsky-community/kandinsky-2-2-decoder
      if (
          pipeline_cls
          in _AUTO_TEXT2IMAGE_DECODER_PIPELINES_MAPPING.values()
      ):
          return _get_task_class(
              AUTO_TEXT2IMAGE_PIPELINES_MAPPING,
              pipeline_cls.__name__,
              throw_error_if_not_exist=False,
          )
      if (
          pipeline_cls
          in _AUTO_IMAGE2IMAGE_DECODER_PIPELINES_MAPPING.values()
      ):
          return _get_task_class(
              AUTO_IMAGE2IMAGE_PIPELINES_MAPPING,
              pipeline_cls.__name__,
              throw_error_if_not_exist=False,
          )
      if (
          pipeline_cls
          in _AUTO_INPAINT_DECODER_PIPELINES_MAPPING.values()
      ):
          return _get_task_class(
              AUTO_INPAINT_PIPELINES_MAPPING,
              pipeline_cls.__name__,
              throw_error_if_not_exist=False,
          )
  
imports: import inspect
  from collections import OrderedDict
  from ..configuration_utils import ConfigMixin
  from ..utils import DIFFUSERS_CACHE
  from .controlnet import StableDiffusionControlNetImg2ImgPipeline, StableDiffusionControlNetInpaintPipeline, StableDiffusionControlNetPipeline, StableDiffusionXLControlNetImg2ImgPipeline, StableDiffusionXLControlNetPipeline
  from .deepfloyd_if import IFImg2ImgPipeline, IFInpaintingPipeline, IFPipeline
  from .kandinsky import KandinskyCombinedPipeline, KandinskyImg2ImgCombinedPipeline, KandinskyImg2ImgPipeline, KandinskyInpaintCombinedPipeline, KandinskyInpaintPipeline, KandinskyPipeline
  from .kandinsky2_2 import KandinskyV22CombinedPipeline, KandinskyV22Img2ImgCombinedPipeline, KandinskyV22Img2ImgPipeline, KandinskyV22InpaintCombinedPipeline, KandinskyV22InpaintPipeline, KandinskyV22Pipeline
  from .stable_diffusion import StableDiffusionImg2ImgPipeline, StableDiffusionInpaintPipeline, StableDiffusionPipeline
  from .stable_diffusion_xl import StableDiffusionXLImg2ImgPipeline, StableDiffusionXLInpaintPipeline, StableDiffusionXLPipeline
  from .wuerstchen import WuerstchenCombinedPipeline, WuerstchenDecoderPipeline
label_desc: Use image node_id 1 for calling a global function with example usage: _get_connected_pipeline(pipeline_cls) and returns: _get_task_class, _get_task_class, _get_task_class