code: def _posterize_impl(pil_img, level):
      """
      Applies PIL Posterize to `pil_img` with strength level.
      """
      max = 4
      min = 0
      level = scale_parameter(level, max - min, "int")
      return ImageOps.posterize(pil_img, max - level)
  
imports: import logging
  import random
  import nltk
  from PIL import Image, ImageEnhance, ImageOps
  from ..constants import AUTOMM, IMAGE, TEXT
label_desc: Use image node_id 4 for calling a global function with example usage: _posterize_impl(pil_img, level) and returns: ImageOps