def METHOD_NAME(r1: Region, r2: Region) -> bool:
    r1_inside_r2 = r1.begin >= r2.begin and r1.end <= r2.end
    r2_inside_r1 = r2.begin >= r1.begin and r2.end <= r1.end
    return r1_inside_r2 or r2_inside_r1