code: def test_equalize():
      aug = A.Equalize(p=1)
  
      img = np.random.randint(0, 256, 256 * 256 * 3, np.uint8).reshape(
          (256, 256, 3)
      )
      a = aug(image=img)["image"]
      b = F.equalize(img)
      assert np.all(a == b)
  
      mask = np.random.randint(0, 2, 256 * 256, np.uint8).reshape(
          (256, 256)
      )
      aug = A.Equalize(mask=mask, p=1)
      a = aug(image=img)["image"]
      b = F.equalize(img, mask=mask)
      assert np.all(a == b)
  
      def mask_func(image, test):  # skipcq: PYL-W0613
          return mask
  
      aug = A.Equalize(mask=mask_func, mask_params=["test"], p=1)
      assert np.all(
          aug(image=img, test=mask)["image"]
          == F.equalize(img, mask=mask)
      )
  
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 19 for calling a global function with example usage: test_equalize() and returns: mask