
    Given the number of social media posts that need content moderation, determine the minimum batch size (which must be a power of 2) that can accommodate all posts for optimal AI processing. The batch size must be greater than or equal to the number of posts to ensure all content is properly analyzed by the moderation system.
    

    
def next_power_of_2(n):
    """
    Given the number of social media posts that need content moderation, determine the minimum batch size (which must be a power of 2) that can accommodate all posts for optimal AI processing. The batch size must be greater than or equal to the number of posts to ensure all content is properly analyzed by the moderation system.
    

    """
def next_power_of_2(n):
    """
    Given the number of social media posts that need content moderation, determine the minimum batch size (which must be a power of 2) that can accommodate all posts for optimal AI processing. The batch size must be greater than or equal to the number of posts to ensure all content is properly analyzed by the moderation system.
    

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