code: def whitene(rle, vals, max_height):
      rlv = []
      for length, value in zip(rle, vals):
          if value == 0 and length < 1.1 * max_height:
              value = 1
          rlv.append((length, value))
  
      n_rle, n_vals = [], []
      count = 0
      for length, value in rlv:
          if value == 1:
              count = count + length
          else:
              if count > 0:
                  n_rle.append(count)
                  n_vals.append(1)
  
              count = 0
              n_rle.append(length)
              n_vals.append(0)
      if count > 0:
          n_rle.append(count)
          n_vals.append(1)
  
      return n_rle, n_vals
  
file_path: Mozart/src/staff.py
imports: from rle import *
  from commonfunctions import *
  from collections import Counter
label_desc: Use image node_id 2 for calling a global function with example usage: whitene(rle, vals, max_height) and returns: n_rle,  n_vals