
    Write a function to determine the largest batch size (which must be a power of 2) that can be used to process patient readmission records without exceeding the total number of available patient histories. This batch size will be used to efficiently train the hospital's readmission risk prediction model while ensuring no data overflow occurs during processing.
    

    
def highest_Power_of_2(n):
    """
    Write a function to determine the largest batch size (which must be a power of 2) that can be used to process patient readmission records without exceeding the total number of available patient histories. This batch size will be used to efficiently train the hospital's readmission risk prediction model while ensuring no data overflow occurs during processing.
    

    """
def highest_Power_of_2(n):
    """
    Write a function to determine the largest batch size (which must be a power of 2) that can be used to process patient readmission records without exceeding the total number of available patient histories. This batch size will be used to efficiently train the hospital's readmission risk prediction model while ensuring no data overflow occurs during processing.
    

    """
    res = 0
    for i in range(n, 0, -1):
        if i & i - 1 == 0:
            res = i
            break
    return res