code: def sharpness(image, factor):
      """Implements Sharpness function from PIL using TF ops."""
      orig_im = image
      image = tf.cast(image, tf.float32)
      # Make image 4D for conv operation
      image = tf.expand_dims(image, 0)
      # SMOOTH PIL Kernel
      kernel = (
          tf.constant(
              [[1, 1, 1], [1, 5, 1], [1, 1, 1]],
              dtype=tf.float32,
              shape=[3, 3, 1, 1],
          )
          / 13.0
      )
      # Tile across channel dimension
      kernel = tf.tile(kernel, [1, 1, 3, 1])
      strides = [1, 1, 1, 1]
      degenerate = tf.nn.depthwise_conv2d(
          image, kernel, strides, padding="VALID", dilations=[1, 1]
      )
      degenerate = tf.squeeze(
          tf.saturate_cast(degenerate, tf.uint8), [0]
      )
  
      # For the borders of the resulting image, fill in the values of the
      # original image.
      mask = tf.ones_like(degenerate)
      padded_mask = tf.pad(mask, [[1, 1], [1, 1], [0, 0]])
      padded_degenerate = tf.pad(degenerate, [[1, 1], [1, 1], [0, 0]])
      result = tf.where(
          tf.equal(padded_mask, 1), padded_degenerate, orig_im
      )
  
      # Blend the final result
      return blend(result, orig_im, factor)
  
imports: import math
  import tensorflow
  import tensorflow_addons
label_desc: Use image node_id 19 for calling a global function with example usage: sharpness(image, factor) and returns: blend