code: def get_image_op_settings(
      image_op: ImageOp, fillcolor: Tuple[int, int, int] = MIDDLE_GRAY
  ):
      return {
          ImageOp.SHEAR_X: ImageOpSetting(
              np.linspace(0, 0.3, 10),
              partial(shear_x, fillcolor=fillcolor),
          ),
          ImageOp.SHEAR_Y: ImageOpSetting(
              np.linspace(0, 0.3, 10),
              partial(shear_y, fillcolor=fillcolor),
          ),
          ImageOp.TRANSLATE_X: ImageOpSetting(
              np.linspace(0, 150 / 331, 10),
              partial(translate_x, fillcolor=fillcolor),
          ),
          ImageOp.TRANSLATE_Y: ImageOpSetting(
              np.linspace(0, 150 / 331, 10),
              partial(translate_y, fillcolor=fillcolor),
          ),
          ImageOp.ROTATE: ImageOpSetting(
              np.linspace(0, 30, 10), rotate_with_fill
          ),
          ImageOp.COLOR: ImageOpSetting(
              np.linspace(0.0, 0.9, 10), color
          ),
          ImageOp.POSTERIZE: ImageOpSetting(
              np.round(np.linspace(8, 4, 10), 0).astype(np.int),
              posterize,
          ),
          ImageOp.SOLARIZE: ImageOpSetting(
              np.linspace(256, 0, 10), solarize
          ),
          ImageOp.CONTRAST: ImageOpSetting(
              np.linspace(0.0, 0.9, 10), contrast
          ),
          ImageOp.SHARPNESS: ImageOpSetting(
              np.linspace(0.0, 0.9, 10), sharpness
          ),
          ImageOp.BRIGHTNESS: ImageOpSetting(
              np.linspace(0.0, 0.9, 10), brightness
          ),
          ImageOp.AUTO_CONTRAST: ImageOpSetting(
              [0] * 10, auto_contrast
          ),
          ImageOp.EQUALIZE: ImageOpSetting([0] * 10, equalize),
          ImageOp.INVERT: ImageOpSetting([0] * 10, invert),
      }[image_op]
  
imports: import random
  from enum import auto, Enum
  from functools import partial
  from typing import Any, Callable, NamedTuple, Sequence, Tuple
  import numpy
  from classy_vision.dataset.transforms import ClassyTransform, register_transform
  from PIL import Image, ImageEnhance, ImageOps
label_desc: Use image node_id 15 for calling a global function with example usage: get_image_op_settings(image_op, fillcolor) and returns: dict