code: def rle_decode(rle_str, shape, dtype) -> np.ndarray:
      s = rle_str.split()
      starts, lengths = [
          np.asarray(x, dtype=int) for x in (s[0:][::2], s[1:][::2])
      ]
      starts -= 1
      ends = starts + lengths
      mask = np.zeros(np.prod(shape), dtype=dtype)
      for lo, hi in zip(starts, ends):
          mask[lo:hi] = 1
      return mask.reshape(shape[::-1]).T
  
label_desc: Use image node_id 3 for calling a global function with example usage: rle_decode(rle_str, shape, dtype) and returns: mask