code: def apply(x, ops):
      if ops is None:
          return x
      y = Image.fromarray(
          np.round(127.5 * (1 + x)).clip(0, 255).astype("uint8")
      )
      for op, args in ops:
          y = OPS[op].f(y, *args)
      return np.asarray(y).astype("f") / 127.5 - 1
  
imports: import random
  from collections import namedtuple
  import numpy
  from PIL import Image, ImageOps, ImageEnhance, ImageFilter
label_desc: Use image node_id 2 for calling a global function with example usage: apply(x, ops) and returns: unknown, x