code: def __init__(
      self,
      p1,
      operation1,
      magnitude_idx1,
      p2,
      operation2,
      magnitude_idx2,
      fillcolor=(128, 128, 128),
  ):
      ranges = {
          "shearX": np.linspace(0, 0.3, 10),
          "shearY": np.linspace(0, 0.3, 10),
          "translateX": np.linspace(0, 150 / 331, 10),
          "translateY": np.linspace(0, 150 / 331, 10),
          "rotate": np.linspace(0, 30, 10),
          "color": np.linspace(0.0, 0.9, 10),
          "posterize": np.round(np.linspace(8, 4, 10), 0).astype(
              np.int
          ),
          "solarize": np.linspace(256, 0, 10),
          "contrast": np.linspace(0.0, 0.9, 10),
          "sharpness": np.linspace(0.0, 0.9, 10),
          "brightness": np.linspace(0.0, 0.9, 10),
          "autocontrast": [0] * 10,
          "equalize": [0] * 10,
          "invert": [0] * 10,
      }
  
      func = {
          "shearX": ShearX(fillcolor=fillcolor),
          "shearY": ShearY(fillcolor=fillcolor),
          "translateX": TranslateX(fillcolor=fillcolor),
          "translateY": TranslateY(fillcolor=fillcolor),
          "rotate": Rotate(),
          "color": Color(),
          "posterize": Posterize(),
          "solarize": Solarize(),
          "contrast": Contrast(),
          "sharpness": Sharpness(),
          "brightness": Brightness(),
          "autocontrast": AutoContrast(),
          "equalize": Equalize(),
          "invert": Invert(),
      }
  
      self.p1 = p1
      self.operation1 = func[operation1]
      self.magnitude1 = ranges[operation1][magnitude_idx1]
      self.p2 = p2
      self.operation2 = func[operation2]
      self.magnitude2 = ranges[operation2][magnitude_idx2]
  
file_path: zoo/src/utils/autoaug.py
imports: import numpy
  from src.utils.transforms import *
label_desc: Use image node_id 1 to create a new SubPolicy object from inherited base classes: object with example: obj = SubPolicy(p1, operation1, magnitude_idx1, p2, operation2, magnitude_idx2, fillcolor)