
    Design a function that determines the largest batch size (as a power of 2) for processing patient readmission records, given the total number of historical cases, to optimize the hospital's risk prediction model training. The batch size should be the highest power of 2 that does not exceed the total number of available patient records, ensuring efficient data processing while maintaining the system's memory constraints.
    

    
def highest_Power_of_2(n):
    """
    Design a function that determines the largest batch size (as a power of 2) for processing patient readmission records, given the total number of historical cases, to optimize the hospital's risk prediction model training. The batch size should be the highest power of 2 that does not exceed the total number of available patient records, ensuring efficient data processing while maintaining the system's memory constraints.
    

    """
def highest_Power_of_2(n):
    """
    Design a function that determines the largest batch size (as a power of 2) for processing patient readmission records, given the total number of historical cases, to optimize the hospital's risk prediction model training. The batch size should be the highest power of 2 that does not exceed the total number of available patient records, ensuring efficient data processing while maintaining the system's memory constraints.
    

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