def isContained(bbox1, bbox2, tol=TOLERANCE):
if bbox1[<NUM_LIT:0>] > bbox2[<NUM_LIT:0>] - tol and bbox1[<NUM_LIT:1>] > bbox2[<NUM_LIT:1>] - tol:<EOL><INDENT>if bbox1[<NUM_LIT:2>] < bbox2[<NUM_LIT:2>] + tol and bbox1[<NUM_LIT:3>] < bbox2[<NUM_LIT:3>] + tol:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
:param bbox1: bounding box of the first rectangle
:param bbox2: bounding box of the second rectangle
:return: True if bbox1 is contaned in bbox2