def envelops(reg, target_reg):
    """Given a region and another target region, returns whether the region
    is enveloped within the target region."""
    return (target_reg.start <= reg.start < target_reg.end) \
        and (target_reg.start <= reg.end < target_reg.end)