code: def _solarize_impl(pil_img, level):
      """
      Applies PIL Solarize to `pil_img` with strength level.
      """
      max = 256
      level = scale_parameter(level, max, "int")
      return ImageOps.solarize(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 3 for calling a global function with example usage: _solarize_impl(pil_img, level) and returns: ImageOps