问题描述:
Write a python function to check whether all the bits are unset in the given range or not.

测试用例:
['assert all_Bits_Set_In_The_Given_Range(4,1,2) == True', 'assert all_Bits_Set_In_The_Given_Range(17,2,4) == True', 'assert all_Bits_Set_In_The_Given_Range(39,4,6) == False']

生成的代码:
def all_Bits_Set_In_The_Given_Range(num, start, end):
    # Create a mask with bits set to 1 in the range [start, end]
    mask = ((1 << (end - start + 1)) - 1) << start
    # Check if the bits in the given range are all unset
    return (num & mask) == 0

# Test cases
assert all_Bits_Set_In_The_Given_Range(4,1,2) == True
assert all_Bits_Set_In_The_Given_Range(17,2,4) == True
assert all_Bits_Set_In_The_Given_Range(39,4,6) == False