code: def make_image(prompt, filename=None, gpu_id="auto", pipe=None):
      if pipe is None:
          pipe = get_pipe_make_image(gpu_id=gpu_id)
  
      lock_type = "image"
      base_path = os.path.join("locks", "image_locks")
      base_path = makedirs(
          base_path, exist_ok=True, tmp_ok=True, use_base=True
      )
      lock_file = os.path.join(base_path, "%s.lock" % lock_type)
      makedirs(os.path.dirname(lock_file))  # ensure made
      with filelock.FileLock(lock_file):
          image = pipe(
              prompt=prompt, num_inference_steps=1, guidance_scale=0.0
          ).images[0]
      if filename:
          image.save(filename)
          return filename
      return image
  
file_path: h2ogpt/src/vision/sdxl.py
imports: import os
  import filelock
  import torch
  from diffusers import AutoPipelineForImage2Image, AutoPipelineForText2Image
  from diffusers.utils import load_image
  from src.utils import cuda_vis_check, makedirs
label_desc: Use image node_id 3 for calling a global function with example usage: make_image(prompt, filename, gpu_id, pipe) and returns: image, filename