code: def smooth(image, factor):
      """Smooth with the same kernel as ImageFilter.SMOOTH."""
      # See https://github.com/python-pillow/Pillow/blob/master/src/PIL/ImageFilter.py  # pylint: disable=line-too-long
      # class SMOOTH(BuiltinFilter):
      #     name = "Smooth"
      #     # fmt: off
      #     filterargs = (3, 3), 13, 0, (
      #         1, 1, 1,
      #         1, 5, 1,
      #         1, 1, 1,
      #     )
      #     # fmt: on
      #
      # filterargs are following:
      # (kernel_size_x, kernel_size_y), divisor, offset, kernel
      #
      smooth_kernel = (
          tf.constant(
              [[1.0, 1.0, 1.0], [1.0, 5.0, 1.0], [1.0, 1.0, 1.0]],
              dtype=tf.float32,
              shape=[3, 3, 1, 1],
          )
          / 13.0
      )
      smoothed_im = _convolve_image_with_kernel(image, smooth_kernel)
      return blend(image, smoothed_im, factor)
  
imports: import math
  import tensorflow
  import tensorflow_addons
label_desc: Use image node_id 24 for calling a global function with example usage: smooth(image, factor) and returns: blend