code: def get_pipe_make_image(gpu_id, refine=True):
      device = get_device(gpu_id)
  
      base = DiffusionPipeline.from_pretrained(
          "stabilityai/stable-diffusion-xl-base-1.0",
          torch_dtype=torch.float16,
          use_safetensors=True,
          add_watermarker=False,
          variant="fp16",
      ).to(device)
      if not refine:
          refiner = None
      else:
          refiner = DiffusionPipeline.from_pretrained(
              "stabilityai/stable-diffusion-xl-refiner-1.0",
              text_encoder_2=base.text_encoder_2,
              vae=base.vae,
              torch_dtype=torch.float16,
              use_safetensors=True,
              variant="fp16",
          ).to(device)
  
      return base, refiner
  
imports: import os
  import filelock
  from diffusers import DiffusionPipeline
  import torch
  from src.utils import makedirs
  from src.vision.sdxl import get_device
label_desc: Use image node_id 1 for calling a global function with example usage: get_pipe_make_image(gpu_id, refine) and returns: base,  refiner