code: def rle_encode(arr):
      if len(arr) == 0:
          return [], [], []
  
      x = np.copy(arr)
      first_dismatch = np.array(x[1:] != x[:-1])
      distmatch_positions = np.append(
          np.where(first_dismatch), len(x) - 1
      )
      rle = np.diff(np.append(-1, distmatch_positions))
      values = [x[i] for i in np.cumsum(np.append(0, rle))[:-1]]
      return rle, values
  
imports: import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: rle_encode(arr) and returns: rle,  values, list,  list,  list