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