code: def split_dims(xs, height, width):
      xs = xs
  
      def repeat_div(x, y):
          while y > 0:
              x = math.ceil(x / 2)
              y = y - 1
          return x
  
      scale = math.ceil(math.log2(math.sqrt(height * width / xs)))
      dsh = repeat_div(height, scale)
      dsw = repeat_div(width, scale)
      return dsh, dsw
  
imports: import math
  from typing import Dict, Optional
  import torch
  import torchvision.transforms.functional
  from transformers import CLIPFeatureExtractor, CLIPTextModel, CLIPTokenizer
  from diffusers import StableDiffusionPipeline
  from diffusers.models import AutoencoderKL, UNet2DConditionModel
  from diffusers.pipelines.stable_diffusion.safety_checker import StableDiffusionSafetyChecker
  from diffusers.schedulers import KarrasDiffusionSchedulers
  from diffusers.utils import USE_PEFT_BACKEND
label_desc: Use image node_id 4 for calling a global function with example usage: split_dims(xs, height, width) and returns: dsh,  dsw, x