code: def __init__(
      self,
      operation1: ImageOp,
      magnitude_idx1: int,
      p1: float,
      operation2: ImageOp,
      magnitude_idx2: int,
      p2: float,
      fillcolor: Tuple[int, int, int] = MIDDLE_GRAY,
  ) -> None:
      operation1_settings = get_image_op_settings(operation1, fillcolor)
      self.operation1 = operation1_settings.function
      self.magnitude1 = operation1_settings.ranges[magnitude_idx1]
      self.p1 = p1
  
      operation2_settings = get_image_op_settings(operation2, fillcolor)
      self.operation2 = operation2_settings.function
      self.magnitude2 = operation2_settings.ranges[magnitude_idx2]
      self.p2 = p2
  
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 1 to create a new SubPolicy object  with example: obj = SubPolicy(operation1, magnitude_idx1, p1, operation2, magnitude_idx2, p2, fillcolor)