code: def median_blur(img: np.ndarray, ksize: int) -> np.ndarray:
      if img.dtype == np.float32 and ksize not in {3, 5}:
          raise ValueError(
              f"Invalid ksize value {ksize}. For a float32 image the only valid ksize values are 3 and 5"
          )
  
      blur_fn = _maybe_process_in_chunks(cv2.medianBlur, ksize=ksize)
      return blur_fn(img)
  
file_path: albumentations/albumentations/augmentations/blur/functional.py
imports: from itertools import product
  from math import ceil
  from typing import Sequence, Union
  import cv2
  import numpy
  from albumentations.augmentations.functional import convolve
  from albumentations.augmentations.geometric.functional import scale
  from albumentations.augmentations.utils import _maybe_process_in_chunks, clipped, preserve_shape
label_desc: Use image node_id 2 for calling a global function with example usage: median_blur(img, ksize) and returns: blur_fn