
    Design a function that determines the minimum group size (which must be a power of 2) needed to organize all students into equal-sized learning pods, ensuring no student is left without a group. The group size should be large enough to accommodate all students while maintaining the power-of-2 requirement for implementing structured peer learning activities.
    

    
def next_power_of_2(n):
    """
    Design a function that determines the minimum group size (which must be a power of 2) needed to organize all students into equal-sized learning pods, ensuring no student is left without a group. The group size should be large enough to accommodate all students while maintaining the power-of-2 requirement for implementing structured peer learning activities.
    

    """
def next_power_of_2(n):
    """
    Design a function that determines the minimum group size (which must be a power of 2) needed to organize all students into equal-sized learning pods, ensuring no student is left without a group. The group size should be large enough to accommodate all students while maintaining the power-of-2 requirement for implementing structured peer learning activities.
    

    """
    if n and (not n & n - 1):
        return n
    count = 0
    while n != 0:
        n >>= 1
        count += 1
    return 1 << count