code: def check_if_two_rectangles_overlap(l1, r1, l2, r2):
      # first check by X coordinates, if rectangles can overlap on X axis
      # longer form (l1[0] < l2[0] and r1[0] < l2[0]) or (l1[0] > r2[0] and r1[0] > r2[0])
      # but we know that l1[0] is always smaller than r1[0]
      if (r1[0] < l2[0]) or (l1[0] > r2[0]):
          return False
  
      # now we know that the rectangles are overlapping on X axis
      # check if they are overlapping on Y axis
      # (use the same logic from previous)
      if (r1[1] < l2[1]) or (l1[1] > r2[1]):
          return False
  
      return True
  
label_desc: Use image node_id 1 for calling a global function with example usage: check_if_two_rectangles_overlap(l1, r1, l2, r2) and returns: True, False, False