code: def get_new_h_w(h, w, scale_factor=8):
      new_h = h // scale_factor**2
      if h % scale_factor**2 != 0:
          new_h += 1
      new_w = w // scale_factor**2
      if w % scale_factor**2 != 0:
          new_w += 1
      return new_h * scale_factor, new_w * scale_factor
  
imports: from typing import Callable, List, Optional, Union
  import numpy
  import PIL.Image
  import torch
  from PIL import Image
  from transformers import XLMRobertaTokenizer
  from ...models import UNet2DConditionModel, VQModel
  from ...schedulers import DDIMScheduler
  from ...utils import logging, replace_example_docstring
  from ...utils.torch_utils import randn_tensor
  from ..pipeline_utils import DiffusionPipeline, ImagePipelineOutput
  from .text_encoder import MultilingualCLIP
label_desc: Use image node_id 1 for calling a global function with example usage: get_new_h_w(h, w, scale_factor) and returns: unknown,  unknown