class_docstr: Implementation of random image Solarization.
  
  Utilizes the integrated image operation `solarize` from Pillow. Solarization
  inverts all pixel values above a threshold (default: 128).
  
  Attributes:
      probability:
          Probability to apply the transformation
      threshold:
          Threshold for solarization.
class_docstr_tok: ["Implementation","of","random","image","Solarization",".","Utilizes","the","integrated","image","operation","`","solarize","`","from","Pillow",".","Solarization","inverts","all","pixel","values","above","a","threshold","(","default",":","128",")",".","Attributes",":","probability",":","Probability","to","apply","the","transformation","threshold",":","Threshold","for","solarization","."]
code: def __init__(self, prob: float = 0.5, threshold: int = 128):
      self.prob = prob
      self.threshold = threshold
  
imports: import numpy
  from PIL import ImageOps
  from PIL.Image import Image
label_desc: Use image node_id 1 to create a new RandomSolarization object from inherited base classes: object with example: obj = RandomSolarization(prob, threshold)