code: def test_equalize_with_PIL():
      np.random.seed(0)
      image = np.random.randint(
          low=0, high=255, size=(4, 3, 3, 3), dtype=np.uint8
      )
      equalized = np.stack(
          [ImageOps.equalize(Image.fromarray(i)) for i in image]
      )
      np.testing.assert_equal(
          color_ops.equalize(tf.constant(image)).numpy(), equalized
      )
  
file_path: addons/tensorflow_addons/image/tests/color_ops_test.py
imports: import pytest
  import tensorflow
  import numpy
  from tensorflow_addons.image import color_ops
  from PIL import Image, ImageOps, ImageEnhance
  from skimage.exposure import equalize_hist
label_desc: Use image node_id 2 for calling a global function with example usage: test_equalize_with_PIL() without return types