class_docstr: Class representing Treap (Cartesian Tree) used to calculate the Incremental KS statistics.
code: def __init__(self, key, value=0):
      self.key = key
      self.value = value
      self.priority = random.random()
      self.size = 1
      self.height = 1
      self.lazy = 0
      self.max_value = value
      self.min_value = value
      self.left = None
      self.right = None
  
imports: from __future__ import annotations
  import math
  import random
  from river import base, stats
label_desc: Use image node_id 1 to create a new Treap object from inherited base classes: base with example: obj = Treap(key, value)