def do_intersect(bb1, bb2):
if bb1[<NUM_LIT:0>] + bb1[<NUM_LIT:2>] < bb2[<NUM_LIT:0>] or bb2[<NUM_LIT:0>] + bb2[<NUM_LIT:2>] < bb1[<NUM_LIT:0>]:<EOL><INDENT>return False<EOL><DEDENT>if bb1[<NUM_LIT:1>] + bb1[<NUM_LIT:3>] < bb2[<NUM_LIT:1>] or bb2[<NUM_LIT:1>] + bb2[<NUM_LIT:3>] < bb1[<NUM_LIT:1>]:<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Helper function that returns True if two bounding boxes overlap.