code: def cutout(x, level):
      """Apply cutout to pil_img at the specified level."""
      size = 1 + int(level * min(x.size) * 0.499)
      img_height, img_width = x.size
      height_loc = np.random.randint(low=0, high=img_height)
      width_loc = np.random.randint(low=0, high=img_width)
      upper_coord = (
          max(0, height_loc - size // 2),
          max(0, width_loc - size // 2),
      )
      lower_coord = (
          min(img_height, height_loc + size // 2),
          min(img_width, width_loc + size // 2),
      )
      pixels = x.load()  # create the pixel map
      for i in range(upper_coord[0], lower_coord[0]):  # for every col:
          for j in range(
              upper_coord[1], lower_coord[1]
          ):  # For every row
              pixels[i, j] = (
                  127,
                  127,
                  127,
              )  # set the color accordingly
      return x
  
imports: import random
  from collections import namedtuple
  import numpy
  from PIL import Image, ImageOps, ImageEnhance, ImageFilter
label_desc: Use image node_id 11 for calling a global function with example usage: cutout(x, level) and returns: x