code: def test_sharpness_with_PIL(factor):
      np.random.seed(0)
      image = np.random.randint(
          low=0, high=255, size=(10, 5, 5, 3), dtype=np.uint8
      )
      sharpened = np.stack(
          [
              ImageEnhance.Sharpness(Image.fromarray(i)).enhance(factor)
              for i in image
          ]
      )
      np.testing.assert_allclose(
          color_ops.sharpness(tf.constant(image), factor).numpy(),
          sharpened,
          atol=1,
      )
  
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 5 for calling a global function with example usage: test_sharpness_with_PIL(factor) without return types