code: def test_downscale(interpolation):
      img_float = np.random.rand(100, 100, 3)
      img_uint = (img_float * 255).astype("uint8")
  
      aug = A.Downscale(
          scale_min=0.5,
          scale_max=0.5,
          interpolation=interpolation,
          always_apply=True,
      )
  
      for img in (img_float, img_uint):
          transformed = aug(image=img)["image"]
          func_applied = F.downscale(
              img,
              scale=0.5,
              down_interpolation=interpolation,
              up_interpolation=interpolation,
          )
          np.testing.assert_almost_equal(transformed, func_applied)
  
imports: import random
  from functools import partial
  import cv2
  import numpy
  import pytest
  import albumentations
  import albumentations.augmentations.functional
  import albumentations.augmentations.geometric.functional
  from albumentations.augmentations.blur.functional import gaussian_blur
  from .utils import get_dual_transforms, get_image_only_transforms, get_transforms
label_desc: Use image node_id 21 for calling a global function with example usage: test_downscale(interpolation) without return types