code: def resize(img, height, width, interpolation=cv2.INTER_LINEAR):
      img_height, img_width = img.shape[:2]
      if height == img_height and width == img_width:
          return img
      resize_fn = _maybe_process_in_chunks(
          cv2.resize, dsize=(width, height), interpolation=interpolation
      )
      return resize_fn(img)
  
imports: import math
  from typing import List, Optional, Sequence, Tuple, Union
  import cv2
  import numpy
  import skimage.transform
  from scipy.ndimage import gaussian_filter
  from albumentations.augmentations.utils import _maybe_process_in_chunks, angle_2pi_range, clipped, preserve_channel_dim, preserve_shape
  from ...None import random_utils
  from ...core.bbox_utils import denormalize_bbox, normalize_bbox
  from ...core.transforms_interface import BoxInternalType, FillValueType, ImageColorType, KeypointInternalType
label_desc: Use image node_id 10 for calling a global function with example usage: resize(img, height, width, interpolation) and returns: resize_fn, img